IDEMPIERE-2879 Attachment name not using printformat translation based user login language
This commit is contained in:
parent
8c190a105e
commit
ea4bf51be3
|
@ -357,7 +357,7 @@ public class ReportEngine implements PrintServiceAttributeListener
|
|||
*/
|
||||
public String getName()
|
||||
{
|
||||
return m_printFormat.getName();
|
||||
return m_printFormat.get_Translation("Name");
|
||||
} // getName
|
||||
|
||||
/**
|
||||
|
|
|
@ -1060,10 +1060,10 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
winExportFile.onClose();
|
||||
AMedia media = 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
|
||||
media = new AMedia(m_reportEngine.getPrintFormat().getName() + "." + ext, null, "application/octet-stream", inputFile, true);
|
||||
Filedownload.save(media, m_reportEngine.getPrintFormat().getName() + "." + ext);
|
||||
media = new AMedia(m_reportEngine.getName() + "." + ext, null, "application/octet-stream", inputFile, true);
|
||||
Filedownload.save(media, m_reportEngine.getName() + "." + ext);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue