From 01a2c458a26d37e85075ba74367b01568893b2a5 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 23 Nov 2007 06:24:51 +0000 Subject: [PATCH] [ 1755849 ] Add AD_ModelValidator - Fixed global validator initialization sequence. --- base/src/org/compiere/model/ModelValidationEngine.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/ModelValidationEngine.java b/base/src/org/compiere/model/ModelValidationEngine.java index b7c5223e70..d4e93fe850 100644 --- a/base/src/org/compiere/model/ModelValidationEngine.java +++ b/base/src/org/compiere/model/ModelValidationEngine.java @@ -151,10 +151,11 @@ public class ModelValidationEngine */ private void initialize(ModelValidator validator, MClient client) { - validator.initialize(this, client); - m_validators.add(validator); if (client == null) m_globalValidators.add(validator); + m_validators.add(validator); + validator.initialize(this, client); + } // initialize /**