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:
parent
c563479888
commit
1efd1d183e
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue