mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +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();
|
||||
|
||||
if ($object instanceof IcingaObject) {
|
||||
if (! $object->hasBeenLoadedFromDb()) {
|
||||
if (! $object->hasBeenLoadedFromDb() && $object->hasProperty('object_type')) {
|
||||
$object->object_type = $this->objectType;
|
||||
}
|
||||
$this->handleImports($object, $values);
|
||||
|
Loading…
x
Reference in New Issue
Block a user