IDEMPIERE-2771 Improve 2pack tracing for errors - fix problem reported by Andrea Bellotto

https://groups.google.com/d/msg/idempiere/8RwwI6duAAs/idONU539CAAJ
This commit is contained in:
Carlos Ruiz 2018-11-05 21:48:12 -02:00
parent 894945a441
commit d3ddf88d83
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ public abstract class AbstractElementHandler implements ElementHandler {
detail.setName(objectName);
detail.setAction(action);
detail.setSuccess(result);
detail.setRecord_ID(objectID);
if (objectID >= 0)
detail.setRecord_ID(objectID);
ctx.packIn.addImportDetail(detail);
StringBuilder msg = new StringBuilder(action).append(" ");
if (detail.getTableName() != null)