ZF-2981: Fieldset having method and action of form added to it

Issue Type: Bug Created: 2008-03-27T06:14:04.000+0000 Last Updated: 2008-05-05T11:44:43.000+0000 Status: Resolved Fix version(s): - 1.5.2 (15/May/08)

Reporter: Tom Holder (tholder) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-3029



Using the following code to add a form:

//Setup the form. $form = new Zend_Form(); $form->setAction($actionUrl) ->setMethod('post') ->setAttrib('id','addCompany') ->setLegend($title) ->addDecorator(new Zend_Form_Decorator_Fieldset()) //This puts our form in a fieldset. ->setView($this->view) ->addElement('hash', 'no_csrf_foo', array('salt' => 'unique', 'timeout' => 300));

It adds a method and form to the surrounding fieldset. This is obviously not correct and causes it to fail validation.

Apologies if my use of addDecorator is incorrect but it would seem that there should never be these attributes on a fieldset tag.

Thanks Tom


Posted by Wil Sinclair (wil) on 2008-03-27T16:06:19.000+0000

Please assess and categorize as necessary.

Posted by Matthew Weier O'Phinney (matthew) on 2008-04-22T10:33:04.000+0000

Scheduling for next mini release.

Posted by Matthew Weier O'Phinney (matthew) on 2008-04-25T11:23:24.000+0000

Fix committed to trunk and 1.5 release branch as of r9313.

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.