GeneralForm: replace ignorant button

It makes no sense to add submit buttons without telling the form
that there is such, especially in combination with autosubmitting
elements.

refs #5967
This commit is contained in:
Thomas Gelf 2014-06-23 15:46:15 +02:00
parent c563479888
commit 1efd1d183e
1 changed files with 1 additions and 11 deletions

View File

@ -357,17 +357,7 @@ class GeneralForm extends Form
$this->addDateFormatSettings($global);
$this->addUserPreferencesDialog($preferences);
$this->addElement(
'button',
'btn_submit',
array(
'type' => 'submit',
'escape' => false,
'value' => '1',
'label' => $this->getView()->icon('save.png', 'Save Changes')
. ' Save changes',
)
);
$this->setSubmitLabel('Save Changes');
}
/**