From 3f305fe540a41a7b151a3353d0eb06533d1b7d67 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 5 Jun 2025 12:28:10 +0200 Subject: [PATCH] StateBadges: Actually render links for single badges fixes #1160 --- library/Icingadb/Common/StateBadges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Common/StateBadges.php b/library/Icingadb/Common/StateBadges.php index b55eeeb3..307248bd 100644 --- a/library/Icingadb/Common/StateBadges.php +++ b/library/Icingadb/Common/StateBadges.php @@ -154,7 +154,7 @@ abstract class StateBadges extends BaseHtmlElement $stateBadge = new StateBadge($this->item->$key, $state); if ($this->url !== null) { - $this->createLink( + $stateBadge = $this->createLink( $stateBadge, Filter::equal($this->type . '.state.soft_state', $this->getStateInt($state)) );