IDEMPIERE-250 Process parameters can inherit data from element (same as column and field)

This commit is contained in:
Carlos Ruiz 2012-04-26 11:59:07 -05:00
parent f7687cff10
commit 9b26b56a96
1 changed files with 13 additions and 2 deletions

View File

@ -37,8 +37,7 @@ public class MProcessPara extends X_AD_Process_Para
/** /**
* *
*/ */
private static final long serialVersionUID = -2387741816477468470L; private static final long serialVersionUID = -6254678383726841920L;
/** /**
* Get MProcessPara from Cache * Get MProcessPara from Cache
@ -277,6 +276,18 @@ public class MProcessPara extends X_AD_Process_Para
{ {
if (isCentrallyMaintained() && getAD_Element_ID() == 0) if (isCentrallyMaintained() && getAD_Element_ID() == 0)
setIsCentrallyMaintained(false); // IDEMPIERE 109 - param without element can't be centrally maintained setIsCentrallyMaintained(false); // IDEMPIERE 109 - param without element can't be centrally maintained
// Sync Terminology
if ((newRecord || is_ValueChanged ("AD_Element_ID"))
&& getAD_Element_ID() != 0 && isCentrallyMaintained())
{
M_Element element = new M_Element (getCtx(), getAD_Element_ID (), get_TrxName());
setColumnName (element.getColumnName());
setName (element.getName());
setDescription (element.getDescription());
setHelp (element.getHelp());
}
return true; return true;
} // beforeSave } // beforeSave