diff --git a/base/src/org/compiere/model/MElementValue.java b/base/src/org/compiere/model/MElementValue.java index 1210ceed70..74cd202f45 100644 --- a/base/src/org/compiere/model/MElementValue.java +++ b/base/src/org/compiere/model/MElementValue.java @@ -226,8 +226,8 @@ public class MElementValue extends X_C_ElementValue if (newRecord) { // afalcone [Bugs #1837219] - int ad_Tree_ID= (new MElement(getCtx(), getC_Element_ID(), null)).getAD_Tree_ID(); - String treeType= (new MTree(getCtx(),ad_Tree_ID,null)).getTreeType(); + int ad_Tree_ID= (new MElement(getCtx(), getC_Element_ID(), get_TrxName())).getAD_Tree_ID(); + String treeType= (new MTree(getCtx(),ad_Tree_ID,get_TrxName())).getTreeType(); insert_Tree(treeType, getC_Element_ID()); // insert_Tree(MTree_Base.TREETYPE_ElementValue, getC_Element_ID()); Old