IDEMPIERE-254 2Pack Stabilization and Enhancement / Problems found importing packages

This commit is contained in:
Carlos Ruiz 2012-09-19 19:12:23 -05:00
parent d91955538a
commit af49e500be
3 changed files with 3 additions and 3 deletions

View File

@ -569,7 +569,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
String id = element.properties.get(idColumn).contents.toString(); String id = element.properties.get(idColumn).contents.toString();
if (id != null && id.trim().length() > 0) { if (id != null && id.trim().length() > 0) {
Query query = new Query(ctx.ctx, tableName, idColumn+"=?", ctx.trx.getTrxName()); Query query = new Query(ctx.ctx, tableName, idColumn+"=?", ctx.trx.getTrxName());
po = query.setParameters(id.trim()).firstOnly(); po = query.setParameters(Integer.valueOf(id.trim())).firstOnly();
} }
} }
return po; return po;

View File

@ -191,7 +191,7 @@ public class PackInHandler extends DefaultHandler {
packageInst.saveEx(); packageInst.saveEx();
} }
m_ctx.ctx.put("AD_Package_Imp_ID", AD_Package_Imp_ID); m_ctx.ctx.put("AD_Package_Imp_ID", String.valueOf(AD_Package_Imp_ID));
m_ctx.ctx.put("UpdateMode", m_updateDictionary); m_ctx.ctx.put("UpdateMode", m_updateDictionary);
m_ctx.ctx.put("PackageDirectory", packageDirectory); m_ctx.ctx.put("PackageDirectory", packageDirectory);
m_ctx.packIn = packIn; m_ctx.packIn = packIn;

View File

@ -179,7 +179,7 @@ public class PackOutProcess extends SvrProcess
else if (X_AD_Package_Exp_Detail.TYPE_Role.equals(type)) else if (X_AD_Package_Exp_Detail.TYPE_Role.equals(type))
return I_AD_Role.Table_Name; return I_AD_Role.Table_Name;
else if (X_AD_Package_Exp_Detail.TYPE_SQLStatement.equals(type)) else if (X_AD_Package_Exp_Detail.TYPE_SQLStatement.equals(type))
return "SQL_Statement"; return "SQLStatement";
else if (X_AD_Package_Exp_Detail.TYPE_Table.equals(type)) else if (X_AD_Package_Exp_Detail.TYPE_Table.equals(type))
return I_AD_Table.Table_Name; return I_AD_Table.Table_Name;
else if (X_AD_Package_Exp_Detail.TYPE_Window.equals(type)) else if (X_AD_Package_Exp_Detail.TYPE_Window.equals(type))