zendframework/zf2 — pull request #1370 by assisp (2012-05-25 13:09:27+00:00)
Title: Fix BaseInputFilter/isValid() for empty data values.

When submiting empty form elements, the data array entry associated with that element and used in the input filter validation (BaseInputFilter/isValid) will be set, but with an empty value ("").
The way isValid() checks for these is wrong as it only checks if the array entry is set or not, making the check allways true.
Also the validation for empty elements will not produce an error message in the case that these are required.
The best way to handle these empty required fields is just to pass an empty string and let the validator handle it.
It will set a "The Value is required and cannot be empty" error message in these cases.