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…
Reference in New Issue