QuickForm: remove most decorators from submit

This commit is contained in:
Thomas Gelf 2015-10-15 20:11:40 +02:00
parent 764d9e4d77
commit 48a0389c80
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ abstract class QuickForm extends Zend_Form
protected function addSubmitButtonIfSet()
{
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->addElement($el);
}