Issues

ZF-8125: Zend_Form doen't set correctly a validator if have set only 1 option

Issue Type: Bug Created: 2009-10-22T15:21:27.000+0000 Last Updated: 2009-11-12T15:06:46.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Stefano Tamagnini (yoghi) Assignee: Thomas Weidner (thomas) Tags: - Zend_Form

Related issues: Attachments:

Description

Zend_Form cannot set correctly options of validator's element if 1 options is set.

Replication bug : create a Zend_Form with config ini :

..other element.. elements.email.type = "text" elements.email.options.attribs.class = "element" elements.email.options.attribs.id = "email" elements.email.options.label = "Email" elements.email.options.required = true elements.email.options.validators.mail.validator = "EmailAddress" elements.email.options.validators.mail.options.validateMx = true elements.email.options.filters.lower.filter = "StringToLower" ..other element..

It not set correctly Zend_Validator_EmailAddress , the option validateMx is skipped.

if add elements.email.options.validators.mail.options.allow = 1 or elements.email.options.validators.mail.options.mouse = "abcd"

validator take all options.

Comments

Posted by Thomas Weidner (thomas) on 2009-11-12T15:06:45.000+0000

Already fixed in past with r18058 since 10.Sept.

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