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