Issues

ZF-7792: Zend_Form_Decorator_Fieldset renders onsubmit attribute

Description

Zend_Form_Decorator_Fieldset should ignore onsubmit and onreset attributes of mother Zend_Form instance

Comments

By adding the 'onsubmit' to the 'to-be-stripped attributes of the fieldset decorator, this can be avoided:

//In the form, add the following before rendering if($fieldSetDecorator = $this->getDecorator('Fieldset')){ $fieldSetDecorator->stripAttribs[] = 'onsubmit'; }