zendframework / zend-inputfilter

InputFilter component from Zend Framework
BSD 3-Clause "New" or "Revised" License
64 stars 50 forks source link

Input::prepareRequiredValidationFailureMessage return value #69

Closed metanav closed 8 years ago

metanav commented 8 years ago

After upgrading to 2.5.5, Apigility validators are not showing expected error message for required fields if error_message is not set. Previously, it was showing the error message from a NotEmpty validator if present in the validator chain. I think the newly introduced prepareRequiredValidationFailureMessage() method should return existing NotEmpty validator message, if present in the validator chain.