Hi,
$validators = array(
'requiredFieldName' => array('presence' => 'required', 'allowEmpty' => true)
)
Before Zend Framework Version 1.8.2 this validator definition worked
fine for me but in later versions it does not work with null values.
Prior to r15646 the presence of a value was checked using
array_key_exists() but now it is checked using isset().
This results in null values being recognized as not present. Is this
intended? And if so, how can I check that a field is specified (but
can be null, false, 0 etc.)?
Has anybody a solution to this problem?
Thanks in advance.
Best regards,
Jonas