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();
|
$props = $object->getProperties();
|
||||||
|
|
||||||
if (! $object instanceof IcingaObject) {
|
if (! $object instanceof IcingaObject) {
|
||||||
$this->setDefaults($props);
|
$this->setDefaults($props);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (! $object->supportsImports()) {
|
||||||
|
$this->setDefaults($props);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$inherited = $object->getInheritedProperties();
|
$inherited = $object->getInheritedProperties();
|
||||||
$origins = $object->getOriginsProperties();
|
$origins = $object->getOriginsProperties();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue