mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +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();
|
$values = array();
|
||||||
|
|
||||||
$object = $this->object();
|
$object = $this->object();
|
||||||
|
if ($this->hasBeenSent()) {
|
||||||
|
|
||||||
if ($this->shouldBeDeleted()) {
|
if ($this->shouldBeDeleted()) {
|
||||||
$this->deleteObject($object);
|
$this->deleteObject($object);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->hasBeenSent()) {
|
|
||||||
$post = $this->getRequest()->getPost();
|
$post = $this->getRequest()->getPost();
|
||||||
foreach ($post as $key => $value) {
|
foreach ($post as $key => $value) {
|
||||||
$el = $this->getElement($key);
|
$el = $this->getElement($key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user