IDEMPIERE-2879 Attachment name not using printformat translation based user login language

This commit is contained in:
Carlos Ruiz 2015-12-12 12:04:12 -05:00
parent 8c190a105e
commit ea4bf51be3
2 changed files with 4 additions and 4 deletions

View File

@ -357,7 +357,7 @@ public class ReportEngine implements PrintServiceAttributeListener
*/ */
public String getName() public String getName()
{ {
return m_printFormat.getName(); return m_printFormat.get_Translation("Name");
} // getName } // getName
/** /**

View File

@ -1060,10 +1060,10 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
winExportFile.onClose(); winExportFile.onClose();
AMedia media = null; AMedia media = null;
if (data != null) if (data != null)
media = new AMedia(m_reportEngine.getPrintFormat().getName() + "." + ext, null, "application/octet-stream", data); media = new AMedia(m_reportEngine.getName() + "." + ext, null, "application/octet-stream", data);
else else
media = new AMedia(m_reportEngine.getPrintFormat().getName() + "." + ext, null, "application/octet-stream", inputFile, true); media = new AMedia(m_reportEngine.getName() + "." + ext, null, "application/octet-stream", inputFile, true);
Filedownload.save(media, m_reportEngine.getPrintFormat().getName() + "." + ext); Filedownload.save(media, m_reportEngine.getName() + "." + ext);
} }
catch (Exception e) catch (Exception e)
{ {