IDEMPIERE-1153 org.adempiere.pipo2.AbstractElementHandler.isProcessElement always returns false for enity types D and C / thanks to Anthony Sossah (xolali)
This commit is contained in:
parent
799788d366
commit
45bda82abc
|
@ -368,7 +368,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
|
||||||
*/
|
*/
|
||||||
protected boolean isProcessElement(Properties ctx, String entityType) {
|
protected boolean isProcessElement(Properties ctx, String entityType) {
|
||||||
if ("D".equals(entityType) || "C".equals(entityType)) {
|
if ("D".equals(entityType) || "C".equals(entityType)) {
|
||||||
return "true".equalsIgnoreCase(getUpdateMode(ctx));
|
return "Y".equalsIgnoreCase(getUpdateMode(ctx));
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,9 +191,9 @@ public class PackInHandler extends DefaultHandler {
|
||||||
packageInst.saveEx();
|
packageInst.saveEx();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_ctx.ctx.put("AD_Package_Imp_ID", String.valueOf(AD_Package_Imp_ID));
|
Env.setContext(m_ctx.ctx, "AD_Package_Imp_ID", String.valueOf(AD_Package_Imp_ID));
|
||||||
m_ctx.ctx.put("UpdateMode", m_updateDictionary);
|
Env.setContext(m_ctx.ctx, "UpdateMode", m_updateDictionary);
|
||||||
m_ctx.ctx.put("PackageDirectory", packageDirectory);
|
Env.setContext(m_ctx.ctx, "PackageDirectory", packageDirectory);
|
||||||
m_ctx.packIn = packIn;
|
m_ctx.packIn = packIn;
|
||||||
} else {
|
} else {
|
||||||
Element e = new Element(uri, localName, qName, new AttributesImpl(atts));
|
Element e = new Element(uri, localName, qName, new AttributesImpl(atts));
|
||||||
|
|
Loading…
Reference in New Issue