Issues

ZF-7489: Float validator, assigned to text element via ini config, created in a way so that it is not locale-aware

Issue Type: Bug Created: 2009-08-05T07:56:08.000+0000 Last Updated: 2009-08-24T13:08:55.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Kostya L. (coviex) Assignee: Thomas Weidner (thomas) Tags: - Zend_Form

Related issues: Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts