mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
DirectorObjectForm: postpone "dummy" object creation
This commit is contained in:
parent
02daf8b97a
commit
ea2add6dc0
@ -403,7 +403,6 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
|
|
||||||
protected function onRequest()
|
protected function onRequest()
|
||||||
{
|
{
|
||||||
$object = $this->object();
|
|
||||||
$values = array();
|
$values = array();
|
||||||
|
|
||||||
if ($this->hasBeenSent()) {
|
if ($this->hasBeenSent()) {
|
||||||
@ -416,6 +415,8 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$object = $this->object();
|
||||||
|
|
||||||
if ($object instanceof IcingaObject) {
|
if ($object instanceof IcingaObject) {
|
||||||
if (! $object->hasBeenLoadedFromDb()) {
|
if (! $object->hasBeenLoadedFromDb()) {
|
||||||
$object->object_type = $this->objectType;
|
$object->object_type = $this->objectType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user