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

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

Already fixed in past with r18058 since 10.Sept.