From a69b76c40c037380139b5ae5108448c7c1d2fb39 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 22 Apr 2015 13:50:08 -0500 Subject: [PATCH] IDEMPIERE-2248 ZK Jasper report viewer prints incorrect file --- org.adempiere.base/src/org/compiere/tools/FileUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/tools/FileUtil.java b/org.adempiere.base/src/org/compiere/tools/FileUtil.java index 63de179c43..8f3a4e0d64 100644 --- a/org.adempiere.base/src/org/compiere/tools/FileUtil.java +++ b/org.adempiere.base/src/org/compiere/tools/FileUtil.java @@ -27,6 +27,7 @@ import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Calendar; +import org.compiere.util.Env; import org.compiere.util.Util; /** @@ -423,7 +424,7 @@ public class FileUtil String dt = sdf.format(cal.getTime()); String cleanName = subject.replaceAll("[ &/]", ""); String localFile = System.getProperty("java.io.tmpdir") - + System.getProperty("file.separator") + cleanName + "_" + dt + + System.getProperty("file.separator") + cleanName + "_" + dt + "_" + Env.getContext(Env.getCtx(), "#AD_Session_ID") + extension; return localFile; }