ZF-5801: Form bug when form-name and element-name is equal.

Issue Type: Bug Created: 2009-02-16T10:17:07.000+0000 Last Updated: 2010-03-31T09:48:23.000+0000 Status: Closed Fix version(s): Reporter: removed user (sandstrom) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-9348



\_request->isPost()) { // return; // } // if (!$form->isValid($this->\_request->getPost())){ // $form->populate($this->\_request->getPost()); // return; // } // \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ // then "array" will be the value of the textarea when the erroneous form is shown. // The problem goes away if foo != bar. class BugExampleForm extends Zend\_Form { public function init() { $this->setName('foo'); $element = new Zend_Form_Element_Textarea('bar'); $element->setLabel('test') ->setRequired(true) ->setAttrib('rows','1') ->setAttrib('cols','1'); $this->addElements(array($element)); } } ### Comments Posted by Christian Albrecht (alab) on 2010-03-18T08:20:23.000+0000 Fixed in [ZF-9348] 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-03-31T09:48:23.000+0000 Matthew Weier O'Phinney resolved [ZF-9348] Patch applied to trunk and 1.10 release branch.

Have you found an issue?

See the Overview section for more details.


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

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