IDEMPIERE-254 2Pack Stabilization and Enhancement. Fixed pack in bug with generic po.
This commit is contained in:
parent
b1275ae52b
commit
21c2f0c05b
|
@ -108,8 +108,10 @@ public abstract class SvrProcess implements ProcessCall
|
|||
|
||||
boolean success = false;
|
||||
|
||||
ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();
|
||||
try
|
||||
{
|
||||
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
|
||||
m_ctx.put(PROCESS_INFO_CTX_KEY, m_pi);
|
||||
if (processUI != null)
|
||||
m_ctx.put(PROCESS_UI_CTX_KEY, processUI);
|
||||
|
@ -143,6 +145,8 @@ public abstract class SvrProcess implements ProcessCall
|
|||
|
||||
// outside transaction processing [ teo_sarca, 1646891 ]
|
||||
postProcess(!m_pi.isError());
|
||||
|
||||
Thread.currentThread().setContextClassLoader(contextLoader);
|
||||
}
|
||||
|
||||
return !m_pi.isError();
|
||||
|
|
|
@ -73,8 +73,8 @@ public class GenericPOElementHandler extends AbstractElementHandler {
|
|||
String uuidColumn = PO.getUUIDColumnName(tableName);
|
||||
String idColumn = tableName + "_ID";
|
||||
MTable table = MTable.get(ctx.ctx, tableName);
|
||||
if ((!element.properties.containsKey(uuidColumn) || element.properties.get(uuidColumn).contents == null || element.properties.get(uuidColumn).contents.toString().trim().length() > 0)
|
||||
&& (!element.properties.containsKey(idColumn) || element.properties.get(idColumn).contents == null || element.properties.get(idColumn).contents.toString().trim().length() > 0)) {
|
||||
if ((!element.properties.containsKey(uuidColumn) || element.properties.get(uuidColumn).contents == null || element.properties.get(uuidColumn).contents.toString().trim().length() == 0)
|
||||
&& (!element.properties.containsKey(idColumn) || element.properties.get(idColumn).contents == null || element.properties.get(idColumn).contents.toString().trim().length() == 0)) {
|
||||
POInfo info = POInfo.getPOInfo(ctx.ctx, table.getAD_Table_ID());
|
||||
MColumn columns[] = table.getColumns(false);
|
||||
StringBuilder whereClause = new StringBuilder();
|
||||
|
|
Loading…
Reference in New Issue