CommandForm: don't clear class

autosubmit class got cleared for no reason after enabling autosubmission.
Please note that the fact that their submission leads to a new form is
another issue.

fixes #6540
This commit is contained in:
Thomas Gelf 2014-06-23 11:27:06 +02:00
parent a1acd52ad9
commit 0efd44e1b0
1 changed files with 1 additions and 2 deletions

View File

@ -170,11 +170,10 @@ class Zend_View_Helper_CommandForm extends Zend_View_Helper_Abstract
} }
$form->addElement($checkBox); $form->addElement($checkBox);
$form->enableAutoSubmit(array($uniqueName));
$checkBox->setDecorators(array('ViewHelper')); $checkBox->setDecorators(array('ViewHelper'));
$checkBox->setAttrib('class', '');
$checkBox->setAttrib('id', $uniqueName); $checkBox->setAttrib('id', $uniqueName);
$form->enableAutoSubmit(array($uniqueName));
$submit_identifier = new Zend_Form_Element_Hidden('btn_submit'); $submit_identifier = new Zend_Form_Element_Hidden('btn_submit');
$submit_identifier->setValue('1'); $submit_identifier->setValue('1');