Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: None
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Validate
-
Labels:None
Description
According to existing documentation getMessages() method returns a list of validation failure messages as <errorCode> => <errorMessage> pairs.
It's declared, that getErrors() value can be also get calling array_keys() on the return value from getMessages().
But different validators in the validator chain may have the same message keys, so some messages may be lost.
It also produces problems in Zend_Filter_Input, which uses validators conception for messages processing. All rule validation errors messages are stored within one array.
Actually every validator uses another key.
Keys are using a syntax like "validatorKey"... f.e. "dateFalseFormat" or "stringFalseFormat".