IDEMPIERE-1565 Can't pack out AD_Process_Access records using pack out type Data.

This commit is contained in:
Heng Sin Low 2013-11-22 12:36:02 +08:00
parent 30f1b4a70f
commit b025add0f3
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class GenericPOElementHandler extends AbstractElementHandler {
} }
if (createElement) { if (createElement) {
if (po.get_ID() > 0) { if (po.get_KeyColumns() != null && po.get_KeyColumns().length == 1 && po.get_ID() > 0) {
ElementHandler handler = ctx.packOut.getHandler(po.get_TableName()); ElementHandler handler = ctx.packOut.getHandler(po.get_TableName());
if (handler != null && !handler.getClass().equals(this.getClass()) ) { if (handler != null && !handler.getClass().equals(this.getClass()) ) {
handler.packOut(ctx.packOut, document, ctx.logDocument, po.get_ID()); handler.packOut(ctx.packOut, document, ctx.logDocument, po.get_ID());