From 17daf6b850a44bbceddd3b2e79c4afd45a47713d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 10 Jul 2007 04:53:05 +0000 Subject: [PATCH] Fix bug [ 1750281 ] Fixed 2Pack columnID error in PackRoll Thanks to Richard Gennaro - richardgennaro --- base/src/org/adempiere/pipo/PackRoll.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/base/src/org/adempiere/pipo/PackRoll.java b/base/src/org/adempiere/pipo/PackRoll.java index 778c8dcb0a..105a6d81f5 100644 --- a/base/src/org/adempiere/pipo/PackRoll.java +++ b/base/src/org/adempiere/pipo/PackRoll.java @@ -197,6 +197,15 @@ public class PackRoll extends SvrProcess { .getInt("AD_Column_ID")); // log.info(columnName); + // Adjust for Column reference table + if (tableName.equals("AD_Ref_Table")) { + columnIDName = "AD_Reference_ID"; + } else if (tableName.equals("AD_TreeNodeMM")) { + columnIDName = "Node_ID"; + } else { + columnIDName = tableName + "_ID"; + } + // Update columns for record // TODO make process more efficient! if (IsKey.equals("Y") @@ -248,15 +257,6 @@ public class PackRoll extends SvrProcess { int v_AD_Reference_ID = rs2 .getInt("AD_Reference_ID"); - // Adjust for Column reference table - if (tableName.equals("AD_Ref_Table")) { - columnIDName = "AD_Reference_ID"; - } else if (tableName - .equals("AD_TreeNodeMM")) { - columnIDName = "Node_ID"; - } else { - columnIDName = tableName + "_ID"; - } // Update columns that are Strings adjusting // for single quotes if (v_AD_Reference_ID == 10