From 1efd1d183ec266d13928637fce591b9a5b8acaec Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 23 Jun 2014 15:46:15 +0200 Subject: [PATCH] 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 --- application/forms/Config/GeneralForm.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/application/forms/Config/GeneralForm.php b/application/forms/Config/GeneralForm.php index 04c6bba3f..45f15d2a6 100644 --- a/application/forms/Config/GeneralForm.php +++ b/application/forms/Config/GeneralForm.php @@ -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'); } /**