Model Validation Engine duplicate listeners

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2947607
This commit is contained in:
vpj-cd 2010-02-08 00:39:56 +00:00
parent 9583fa45dd
commit cdb6040076
1 changed files with 10 additions and 2 deletions

View File

@ -49,6 +49,8 @@ import org.compiere.util.KeyNamePair;
* https://sourceforge.net/tracker/?func=detail&aid=2804135&group_id=176962&atid=879332 * https://sourceforge.net/tracker/?func=detail&aid=2804135&group_id=176962&atid=879332
* <li>BF [ 2819617 ] NPE if script validator rule returns null * <li>BF [ 2819617 ] NPE if script validator rule returns null
* https://sourceforge.net/tracker/?func=detail&aid=2819617&group_id=176962&atid=879332 * https://sourceforge.net/tracker/?func=detail&aid=2819617&group_id=176962&atid=879332
* @author victor.perez@e-evolution.com, www.e-evolution.com
* <li>BF [ 2947607 ] Model Validator Engine duplicate listeners
*/ */
public class ModelValidationEngine public class ModelValidationEngine
{ {
@ -431,8 +433,8 @@ public class ModelValidationEngine
list.add(listener); list.add(listener);
m_docValidateListeners.put(propertyName, list); m_docValidateListeners.put(propertyName, list);
} }
else //else
list.add(listener); // list.add(listener);
} // addDocValidate } // addDocValidate
/** /**
@ -849,4 +851,10 @@ public class ModelValidationEngine
} }
} }
public Hashtable geDocValidateListeners()
{
return m_docValidateListeners;
}
} // ModelValidatorEngine } // ModelValidatorEngine