Details
Description
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
Issue Links
| This issue is duplicated by: | ||||
| ZF-3029 | Can not avoid Form Decorator from inheriting Zend_Form attributes. Result is invalid html |
|
|
|
Please assess and categorize as necessary.