* 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);
|
reportResult( AD_PInstance_ID, "Can not find report", trxName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Record_ID!=-1) {
|
|
||||||
JasperData data = null;
|
JasperData data = null;
|
||||||
File reportFile = null;
|
File reportFile = null;
|
||||||
String fileExtension = "";
|
String fileExtension = "";
|
||||||
|
@ -461,6 +461,7 @@ public class ReportStarter implements ProcessCall, ClientProcess {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Record_ID > 0)
|
||||||
params.put("RECORD_ID", new Integer( Record_ID));
|
params.put("RECORD_ID", new Integer( Record_ID));
|
||||||
|
|
||||||
// contribution from Ricardo (ralexsander)
|
// contribution from Ricardo (ralexsander)
|
||||||
|
@ -531,8 +532,6 @@ public class ReportStarter implements ProcessCall, ClientProcess {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
reportResult( AD_PInstance_ID, null, trxName);
|
reportResult( AD_PInstance_ID, null, trxName);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue