Zend Framework

Zend_Form doen't set correctly a validator if have set only 1 option

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.9.4
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Form
  • Labels:
    None

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.

Activity

Hide
Thomas Weidner added a comment -

Already fixed in past with r18058 since 10.Sept.

Show
Thomas Weidner added a comment - Already fixed in past with r18058 since 10.Sept.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: