tonydspaniard / Yii-extensions

My small contribution to the Yii framework community
124 stars 50 forks source link

EConditionalValidator no longer clears existing object errors #23

Closed boukeversteegh closed 8 years ago

boukeversteegh commented 9 years ago

EConditionalValidator worked by running ConditionalValidators against the object and checking the errors. However, conditions always failed when there were already existing errors, and it would also remove existing errors after failing. This patch properly validates conditional rules when other errors exist, and doesn't clear existing errors.