mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
DirectorObjectForm: deletion check only when sent
This commit is contained in:
parent
cafd136232
commit
24f1580c92
@ -619,12 +619,12 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
$values = array();
|
||||
|
||||
$object = $this->object();
|
||||
if ($this->hasBeenSent()) {
|
||||
|
||||
if ($this->shouldBeDeleted()) {
|
||||
$this->deleteObject($object);
|
||||
}
|
||||
|
||||
if ($this->hasBeenSent()) {
|
||||
$post = $this->getRequest()->getPost();
|
||||
foreach ($post as $key => $value) {
|
||||
$el = $this->getElement($key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user