ZF-9327: Validation dont works correctly with fields thar use belongsTo as array value

Issue Type: Sub-task Created: 2010-03-04T06:20:43.000+0000 Last Updated: 2010-04-16T11:33:17.000+0000 Status: Resolved Fix version(s): Reporter: Daniel Lima (yourwebmaker) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: - ZF-9348



So.. Supose my form have 2 fields, name and login: //Validate: belongsTo is a string $this->addElement('text', 'name', array( 'required' => true, 'label' => 'Nome', 'belongsTo' => 'person' )); //Don't Validate: belongsTo is an array $this->addElement('text', 'login', array( 'required' => true, 'label' => 'Email', 'belongsTo' => 'person[user]' ));

Im using below to validate: $data = $this->getRequest()->getParam('person') $form->isValid($data);


Posted by Christian Albrecht (alab) on 2010-03-25T13:24:00.000+0000

Reopened because suggested fix is not reviewed and committed yet.

Posted by Christian Albrecht (alab) on 2010-04-16T06:13:34.000+0000

Duplicates now parent ZF-9607 which has a Patch and Unit Test attached.

Have you found an issue?

See the Overview section for more details.


© 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.