IDEMPIERE-109 / Process parameter without element shouldn't be Centrally Maintained
This commit is contained in:
parent
b2338cc04d
commit
5aecf6c941
|
@ -78,6 +78,7 @@ public class SynchronizeTerminology extends SvrProcess
|
||||||
rs.close();
|
rs.close();
|
||||||
trx.commit(true);
|
trx.commit(true);
|
||||||
// Create Elements for Process Parameters which are centrally maintained
|
// Create Elements for Process Parameters which are centrally maintained
|
||||||
|
/* IDEMPIERE 109 - this create unwanted Element
|
||||||
sql="SELECT DISTINCT ColumnName, Name, Description, Help, EntityType "
|
sql="SELECT DISTINCT ColumnName, Name, Description, Help, EntityType "
|
||||||
+" FROM AD_PROCESS_PARA p "
|
+" FROM AD_PROCESS_PARA p "
|
||||||
+" WHERE NOT EXISTS "
|
+" WHERE NOT EXISTS "
|
||||||
|
@ -102,7 +103,7 @@ public class SynchronizeTerminology extends SvrProcess
|
||||||
}
|
}
|
||||||
pstmt.close();
|
pstmt.close();
|
||||||
rs.close();
|
rs.close();
|
||||||
trx.commit(true);
|
trx.commit(true);*/
|
||||||
log.info("Adding missing Element Translations");
|
log.info("Adding missing Element Translations");
|
||||||
sql="INSERT INTO AD_ELEMENT_TRL (AD_Element_ID, AD_LANGUAGE, AD_Client_ID, AD_Org_ID,"
|
sql="INSERT INTO AD_ELEMENT_TRL (AD_Element_ID, AD_LANGUAGE, AD_Client_ID, AD_Org_ID,"
|
||||||
+" IsActive, Created, CreatedBy, Updated, UpdatedBy,"
|
+" IsActive, Created, CreatedBy, Updated, UpdatedBy,"
|
||||||
|
|
|
@ -268,4 +268,16 @@ public class MProcessPara extends X_AD_Process_Para
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* Before Save
|
||||||
|
* @param newRecord
|
||||||
|
* @return save
|
||||||
|
*/
|
||||||
|
protected boolean beforeSave (boolean newRecord)
|
||||||
|
{
|
||||||
|
if (isCentrallyMaintained() && getAD_Element_ID() == 0)
|
||||||
|
setIsCentrallyMaintained(false); // IDEMPIERE 109 - param without element can't be centrally maintained
|
||||||
|
return true;
|
||||||
|
} // beforeSave
|
||||||
|
|
||||||
} // MProcessPara
|
} // MProcessPara
|
||||||
|
|
Loading…
Reference in New Issue