Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: None
-
Fix Version/s: 1.8.0
-
Component/s: Zend_Filter_Input
-
Labels:None
-
Fix Version Priority:Should Have
Description
If we use a class constant in the metacommand messages a Zend_Validate_Exception exception is thrown with message 'No message template exists for key 'notBetween'.
This use case is actually not implemented in the Zend_Filter_Input class.
// Works $validators = array( 'month' => array('Int', array('Between', 1, 12), 'messages' => array (0 => 'doit être compris entre 1 et 12') ) ); // does not work $validators = array( 'month' => array('Int', array('Between', 1, 12), 'messages' => array (Zend_Validate_Between::NOT_BETWEEN_STRICT => 'doit être compris entre 1 et 12') ) );
Assigned to Bill