IcingaServiceForm: show Override button also in...

...case all fields belong to categories

fixes #2303
This commit is contained in:
Thomas Gelf 2021-03-18 06:55:33 +01:00
parent 0664da8f12
commit 29097463be
2 changed files with 9 additions and 0 deletions

View File

@ -139,6 +139,14 @@ class IcingaServiceForm extends DirectorObjectForm
} else {
$this->addOverrideHint();
$group = $this->getDisplayGroup('custom_fields');
if (! $group) {
foreach ($this->getDisplayGroups() as $groupName => $eventualGroup) {
if (preg_match('/^custom_fields:/', $groupName)) {
$group = $eventualGroup;
break;
}
}
}
if ($group) {
$elements = $group->getElements();
$group->setElements([$this->getElement('inheritance_hint')]);

View File

@ -16,6 +16,7 @@ next (will be 1.9.0)
### User Interface
* FIX: allow switching DB config while connection is failing (#2300)
* FIX: show Override button when all Fields belong to Field Categories (#2303)
next patch release (will be 1.8.1)
----------------------------------