hg backout a5492ec / IDEMPIERE-1033

This commit is contained in:
Carlos Ruiz 2013-06-22 12:13:33 -05:00
parent 109d00c75e
commit c9f6b85f23
1 changed files with 2 additions and 5 deletions

View File

@ -416,15 +416,12 @@ public class ReportStarter implements ProcessCall, ClientProcess
File reportDir = data.getReportDir();
String resourcePath = reportDir.getAbsolutePath();
String reportdir = reportPath.substring(0, reportPath.lastIndexOf("/"));
if (!resourcePath.endsWith("/") && !resourcePath.endsWith("\\"));
{
resourcePath = resourcePath + "/";
reportdir = reportdir + "/";
}
params.put("SUBREPORT_DIR", resourcePath);
params.put("RESOURCE_DIR", resourcePath);
params.put("REPORT_DIR", reportdir);
if (jasperReport != null && pi.getTable_ID() > 0 && Record_ID <= 0 && pi.getRecord_IDs() != null && pi.getRecord_IDs().length > 0)
{