IcingaServiceSetForm: hide empty descriptions

This commit is contained in:
Thomas Gelf 2018-05-04 08:43:15 +02:00
parent 05a8918f07
commit b6c0895d33
1 changed files with 4 additions and 3 deletions

View File

@ -62,9 +62,10 @@ class IcingaServiceSetForm extends DirectorObjectForm
}
if (count($object->get('imports'))) {
$this->addHtmlHint(
$object->getResolvedProperty('description')
);
$description = $object->getResolvedProperty('description');
if ($description) {
$this->addHtmlHint($description);
}
}
$this->addHidden('object_type', 'object');