mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
DirectorObjectForm: handle object_type only if such
This commit is contained in:
parent
0b4c4d6538
commit
c26f2ed087
@ -429,7 +429,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
$object = $this->object();
|
$object = $this->object();
|
||||||
|
|
||||||
if ($object instanceof IcingaObject) {
|
if ($object instanceof IcingaObject) {
|
||||||
if (! $object->hasBeenLoadedFromDb()) {
|
if (! $object->hasBeenLoadedFromDb() && $object->hasProperty('object_type')) {
|
||||||
$object->object_type = $this->objectType;
|
$object->object_type = $this->objectType;
|
||||||
}
|
}
|
||||||
$this->handleImports($object, $values);
|
$this->handleImports($object, $values);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user