I am having problems since upgrading to 1.10rc1 this morning. My use of the
float validator is causing exceptions due to an unset locale. As far as I
can see the Zend_Form_Element is causing an empty array to be sent to the
validator instead of null.

I haven't changed the way I call the validator, basically I am setting
messages and nothing else.

array('Float', true, array(
                    'messages' => array(
                                Zend_Validate_Float::NOT_FLOAT => 'The quantity 
should
be a number.',
                                )
                                        )
                                ),

I can't decide if it's Zend_Form_Element (which appears to have changed a
lot since 1.9.7) or the validator itself, as it should be expecting an empty
array instead of null.

I believe this is caused by the validator expecting a set value, however
Zend_Form_Element is sending the empty array if there is no value
specifically set. This is causing a major headache! Can anyone confirm or
point me in the right direction?

Thanks
Simon


-- 
View this message in context: 
http://n4.nabble.com/Zend-Form-Element-Zend-Validate-Float-1-10rc1-tp1099994p1099994.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to