QuickForm: remove most decorators from submit
This commit is contained in:
parent
764d9e4d77
commit
48a0389c80
|
@ -103,7 +103,7 @@ abstract class QuickForm extends Zend_Form
|
||||||
protected function addSubmitButtonIfSet()
|
protected function addSubmitButtonIfSet()
|
||||||
{
|
{
|
||||||
if (false !== ($label = $this->getSubmitLabel())) {
|
if (false !== ($label = $this->getSubmitLabel())) {
|
||||||
$el = $this->createElement('submit', $label)->setLabel($label)->removeDecorator('Label');
|
$el = $this->createElement('submit', $label)->setLabel($label)->setDecorators(array('ViewHelper'));
|
||||||
$this->submitButtonName = $el->getName();
|
$this->submitButtonName = $el->getName();
|
||||||
$this->addElement($el);
|
$this->addElement($el);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue