mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DirectorObjectForm: use helper method for button
This commit is contained in:
parent
9d4bd323a8
commit
49042393bf
@ -307,8 +307,6 @@ $inherited = null; // Just testing
|
||||
return $this;
|
||||
}
|
||||
|
||||
if ($submit = $this->getElement('submit')) {
|
||||
$this->removeElement('submit');
|
||||
}
|
||||
|
||||
if ($object->supportsGroups()) {
|
||||
@ -339,9 +337,7 @@ $inherited = null; // Just testing
|
||||
*/
|
||||
}
|
||||
|
||||
if ($submit) {
|
||||
$this->addElement($submit);
|
||||
}
|
||||
$this->moveSubmitToBottom();
|
||||
|
||||
if (! $this->hasBeenSubmitted()) {
|
||||
$this->beforeValidation($this->object->getProperties());
|
||||
|
Loading…
x
Reference in New Issue
Block a user