* remove unnecessary checking
* only put in record_id param if it is > 0
This commit is contained in:
parent
92b24e05b8
commit
ad34029418
|
@ -391,7 +391,7 @@ public class ReportStarter implements ProcessCall, ClientProcess {
|
|||
reportResult( AD_PInstance_ID, "Can not find report", trxName);
|
||||
return false;
|
||||
}
|
||||
if (Record_ID!=-1) {
|
||||
|
||||
JasperData data = null;
|
||||
File reportFile = null;
|
||||
String fileExtension = "";
|
||||
|
@ -461,6 +461,7 @@ public class ReportStarter implements ProcessCall, ClientProcess {
|
|||
}
|
||||
}
|
||||
|
||||
if (Record_ID > 0)
|
||||
params.put("RECORD_ID", new Integer( Record_ID));
|
||||
|
||||
// contribution from Ricardo (ralexsander)
|
||||
|
@ -531,8 +532,6 @@ public class ReportStarter implements ProcessCall, ClientProcess {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
reportResult( AD_PInstance_ID, null, trxName);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue