DirectorObjectForm: fix non-Icinga defaults

This commit is contained in:
Thomas Gelf 2015-08-03 13:13:28 +02:00
parent 7652ec6623
commit b6018c2d31
1 changed files with 6 additions and 0 deletions

View File

@ -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();