mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
QuickForm: fully respect false submit label
This commit is contained in:
parent
5b509a1b7c
commit
3b4b85374d
@ -83,7 +83,10 @@ abstract class QuickForm extends QuickBaseForm
|
|||||||
|
|
||||||
protected function addSubmitButtonIfSet()
|
protected function addSubmitButtonIfSet()
|
||||||
{
|
{
|
||||||
if (false !== ($label = $this->getSubmitLabel())) {
|
if (false === ($label = $this->getSubmitLabel())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$el = $this->createElement('submit', $label)
|
$el = $this->createElement('submit', $label)
|
||||||
->setLabel($label)
|
->setLabel($label)
|
||||||
->setDecorators(array('ViewHelper'));
|
->setDecorators(array('ViewHelper'));
|
||||||
@ -95,7 +98,6 @@ abstract class QuickForm extends QuickBaseForm
|
|||||||
->setDecorators(array('ViewHelper'));
|
->setDecorators(array('ViewHelper'));
|
||||||
$this->fakeSubmitButtonName = $fakeEl->getName();
|
$this->fakeSubmitButtonName = $fakeEl->getName();
|
||||||
$this->addElement($fakeEl);
|
$this->addElement($fakeEl);
|
||||||
}
|
|
||||||
|
|
||||||
$this->addDisplayGroup(
|
$this->addDisplayGroup(
|
||||||
array($this->fakeSubmitButtonName),
|
array($this->fakeSubmitButtonName),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user