Testfix VII
This commit is contained in:
@@ -96,7 +96,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
|
||||
if (documents.Count > 0)
|
||||
{
|
||||
element += String.Format(",\"dox\":\"" + hasDoxString + "\"", transaction.Identity, documents[0].Identity, CurrentOrganization.Name + " - " + report.DescriptionShort + " - " + Resources.Global.Financial_TransactionIdShort + " " + transaction.Identity.ToString("N2"));
|
||||
element += String.Format(",\"dox\":\"" + hasDoxString + "\"", transaction.Identity, documents[0].Identity, CurrentOrganization.Name + " - " + report.DescriptionShort + " - " + Resources.Global.Financial_TransactionIdShort + " " + transaction.Identity.ToString("N0"));
|
||||
}
|
||||
|
||||
if (include)
|
||||
|
||||
@@ -21,6 +21,13 @@ namespace Swarmops.Pages.v5.Support
|
||||
string documentDownloadName = Request.QueryString["DocName"];
|
||||
documentDownloadName = documentDownloadName.Replace("\"", "'");
|
||||
|
||||
if (documentDownloadName.EndsWith(" 2_1"))
|
||||
{
|
||||
// Mystery bug
|
||||
|
||||
documentDownloadName = documentDownloadName.Substring(0, documentDownloadName.Length - 4);
|
||||
}
|
||||
|
||||
Document document = Document.FromIdentity (documentId);
|
||||
|
||||
//Orgid is needed to safely verify permission
|
||||
@@ -230,7 +237,7 @@ namespace Swarmops.Pages.v5.Support
|
||||
}
|
||||
}
|
||||
|
||||
Response.ContentType = contentType + "; filename=" + document.ClientFileName;
|
||||
Response.ContentType = contentType;
|
||||
Response.AppendHeader("Content-Disposition", "attachment; filename=\"" + documentDownloadName + "\"");
|
||||
Response.TransmitFile (Document.StorageRoot + legacyMarker + serverFileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user