mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-15 23:08:11 +02:00
DirectorObjectForm: fix non-Icinga defaults
This commit is contained in:
parent
7652ec6623
commit
b6018c2d31
@ -128,11 +128,17 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
}
|
||||
|
||||
$props = $object->getProperties();
|
||||
|
||||
if (! $object instanceof IcingaObject) {
|
||||
$this->setDefaults($props);
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (! $object->supportsImports()) {
|
||||
$this->setDefaults($props);
|
||||
return;
|
||||
}
|
||||
|
||||
$inherited = $object->getInheritedProperties();
|
||||
$origins = $object->getOriginsProperties();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user