ZF-7489: Float validator, assigned to text element via ini config, created in a way so that it is not locale-aware
Description
Element.php, line 2000 {quote}$instance = new $name;{quote}
This way Zenf_Validator_Float::__construct gets no locale passed and failes validations for i18n numbers.
Comments
Posted by Thomas Weidner (thomas) on 2009-08-05T08:30:25.000+0000
No bug of Zend_Form. Simply give the option when adding the validator:
Example: ```
Posted by Kostya L. (coviex) on 2009-08-05T10:35:26.000+0000
Form definition stored in INI, and locale stored in registry in Zend_Locale key.
http://framework.zend.com/manual/en/…
says {quote} Since Zend Framework 1.8 this validator takes into account the actual locale from browser, environment or application wide set locale. {quote}
So I expect it to work without any form element manipulations in actions.
Posted by Thomas Weidner (thomas) on 2009-08-07T00:02:47.000+0000
No, this feature was reverted with 1.9 as many people had problems with this automatism.
Posted by Kostya L. (coviex) on 2009-08-07T01:36:57.000+0000
reverting is cool, keep doing this way :)
Posted by Thomas Weidner (thomas) on 2009-08-24T13:08:55.000+0000
Fixed with r17798