IcingaHostForm: do not trust HTML separator

fixes #2133
This commit is contained in:
Thomas Gelf 2020-06-06 21:56:54 +02:00
parent d7364e45e8
commit d8f55a47b3
2 changed files with 5 additions and 1 deletions

View File

@ -268,6 +268,9 @@ class IcingaHostForm extends DirectorObjectForm
{
$links = [];
foreach ($groups as $name) {
if (! empty($links)) {
$links[] = ', ';
}
$links[] = Link::create(
$name,
'director/hostgroup',
@ -278,7 +281,7 @@ class IcingaHostForm extends DirectorObjectForm
return Html::tag('span', [
'style' => 'line-height: 2.5em; padding-left: 0.5em'
], $links)->setSeparator(', ');
], $links);
}
protected function getAppliedGroups()

View File

@ -13,6 +13,7 @@ next (will be 1.8.0)
### User Interface
* FIX: It's now possible to set Endpoint ports > 32767 on PostgreSQL (#928)
* FIX: Group list is no longer prefixed with a comma (#2133)
* FEATURE: Data Fields can now be grouped into categories (#1969)
* FEATURE: Inspect is now available for Packages, Stages and Files (#1995)
* FEATURE: Allow to disable the Director frontend / UI (#2007)