IDEMPIERE-2248 ZK Jasper report viewer prints incorrect file
This commit is contained in:
parent
8f1996c2ea
commit
a69b76c40c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue