IcingaHostForm: strike only HTML elements

fixes #2253
This commit is contained in:
Thomas Gelf 2020-12-16 05:58:23 +01:00
parent ea2c4fdaf7
commit 032b043e3a
2 changed files with 18 additions and 6 deletions

View File

@ -230,6 +230,7 @@ class IcingaHostForm extends DirectorObjectForm
$links->addAttributes(['class' => 'strike-links']); $links->addAttributes(['class' => 'strike-links']);
/** @var BaseHtmlElement $link */ /** @var BaseHtmlElement $link */
foreach ($links->getContent() as $link) { foreach ($links->getContent() as $link) {
if ($link instanceof BaseHtmlElement) {
$link->addAttributes([ $link->addAttributes([
'title' => $this->translate( 'title' => $this->translate(
'Group has been inherited, but will be overridden' 'Group has been inherited, but will be overridden'
@ -238,6 +239,7 @@ class IcingaHostForm extends DirectorObjectForm
]); ]);
} }
} }
}
$this->addElement('simpleNote', 'inherited_groups', [ $this->addElement('simpleNote', 'inherited_groups', [
'label' => $this->translate('Inherited groups'), 'label' => $this->translate('Inherited groups'),
'value' => $links, 'value' => $links,

View File

@ -4,6 +4,16 @@
Please make sure to always read our [Upgrading](05-Upgrading.md) documentation Please make sure to always read our [Upgrading](05-Upgrading.md) documentation
before switching to a new version. before switching to a new version.
next (will be 1.8.1)
--------------------
### Fixed issues
* You can find issues and feature requests related to this release on our
[roadmap](https://github.com/Icinga/icingaweb2-module-director/milestone/24?closed=1)
### User Interface
* FIX: don't fail when showing a Host overriding multiple inherited groups (#2253)
1.8.0 1.8.0
----- -----