Commits

hengsin committed c49f151

IDEMPIERE-131 Info Account Viewer enhancement - fixed previous commit break export to excel
(transplanted from 99366e2f44765ab98bd0cc11a017b2245b1ff5b3)

  • Participants
  • Parent commits f0120fe

Comments (0)

Files changed (1)

File org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java

 
 public class WAcctViewer extends Window implements EventListener
 {
+	private static final String TITLE = "Posting";
+
 	/**
 	 *
 	 */
 		southPanel.setParent(south);
 
 		this.setAttribute("mode", "modal");
-		this.setTitle("Posting");
+		this.setTitle(TITLE);
 		this.setBorder("normal");
 		this.setClosable(true);
 		this.setStyle("position: absolute; width: 100%; height: 100%;");
 			RModelExcelExporter exporter = new RModelExcelExporter(m_rmodel);
 			File file;
 			try {
-				file = File.createTempFile(getTitle(), ".xls");
+				file = File.createTempFile(TITLE, ".xls");
 				exporter.export(file, Env.getLanguage(Env.getCtx()));
 				Filedownload.save(file, "application/vnd.ms-excel");
 			} catch (Exception e) {