IDEMPIERE-2544 Integrate/peer review patch IDEMPIERE-2544-containFunction.patch provided by Hiep Lq
This commit is contained in:
parent
7184f1c80e
commit
5044414ae4
|
@ -621,7 +621,7 @@ public class ModelValidationEngine
|
|||
return;
|
||||
//
|
||||
String propertyName =
|
||||
m_globalValidators.contains(listener)
|
||||
(listener instanceof ModelValidator && m_globalValidators.contains((ModelValidator)listener))
|
||||
? tableName + "*"
|
||||
: tableName + listener.getAD_Client_ID();
|
||||
ArrayList<FactsValidator> list = m_factsValidateListeners.get(propertyName);
|
||||
|
@ -666,7 +666,7 @@ public class ModelValidationEngine
|
|||
if (tableName == null || listener == null)
|
||||
return;
|
||||
String propertyName =
|
||||
m_globalValidators.contains(listener)
|
||||
(listener instanceof ModelValidator && m_globalValidators.contains((ModelValidator)listener))
|
||||
? tableName + "*"
|
||||
: tableName + listener.getAD_Client_ID();
|
||||
ArrayList<FactsValidator> list = m_factsValidateListeners.get(propertyName);
|
||||
|
@ -733,7 +733,7 @@ public class ModelValidationEngine
|
|||
{
|
||||
validator = list.get(i);
|
||||
if (validator.getAD_Client_ID() == po.getAD_Client_ID()
|
||||
|| m_globalValidators.contains(validator))
|
||||
|| (validator instanceof ModelValidator && m_globalValidators.contains((ModelValidator)validator)))
|
||||
{
|
||||
String error = validator.factsValidate(schema, facts, po);
|
||||
if (error != null && error.length() > 0)
|
||||
|
|
Loading…
Reference in New Issue