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,12 +230,14 @@ 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) {
$link->addAttributes([ if ($link instanceof BaseHtmlElement) {
'title' => $this->translate( $link->addAttributes([
'Group has been inherited, but will be overridden' 'title' => $this->translate(
. ' by locally assigned group(s)' 'Group has been inherited, but will be overridden'
) . ' by locally assigned group(s)'
]); )
]);
}
} }
} }
$this->addElement('simpleNote', 'inherited_groups', [ $this->addElement('simpleNote', 'inherited_groups', [

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
----- -----