IcingaServiceForm: relax checks for existing ones

This commit is contained in:
Thomas Gelf 2016-03-22 03:24:43 +01:00
parent e803385673
commit c02540dfaa

View File

@ -48,7 +48,7 @@ class IcingaServiceForm extends DirectorObjectForm
$this->addHidden('object_type', 'object'); $this->addHidden('object_type', 'object');
$this->addImportsElement(); $this->addImportsElement();
$imports = $this->getSentOrObjectValue('imports'); $imports = $this->getSentOrObjectValue('imports');
if (empty($imports)) { if ($this->isNew() && empty($imports)) {
return $this->groupMainProperties(); return $this->groupMainProperties();
} }