IDEMPIERE-2248 ZK Jasper report viewer prints incorrect file

This commit is contained in:
Carlos Ruiz 2015-04-22 13:50:08 -05:00
parent 8f1996c2ea
commit a69b76c40c
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}