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:
parent
a1acd52ad9
commit
0efd44e1b0
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue