diff --git a/Changes b/Changes index 63d0a6ffcc..9fba1f36db 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ This file documents the revision history for the Monitoring Webinterface Thruk. +next: + - fix livestatus error on landing page (#1299) + 3.08.3 Fri Jul 21 13:06:06 CEST 2023 - improve landing page performance - fix replacing links in plugin output containing spaces diff --git a/lib/Thruk/Controller/main.pm b/lib/Thruk/Controller/main.pm index 002bd48adb..bdf4a0e2fc 100644 --- a/lib/Thruk/Controller/main.pm +++ b/lib/Thruk/Controller/main.pm @@ -288,12 +288,12 @@ sub index { sub _get_top5_hostgroups { my($c, $hostfilter) = @_; - my $auth_filter = Thruk::Utils::Auth::get_auth_filter($c, 'hosts'); + my $auth_filter = [Thruk::Utils::Auth::get_auth_filter($c, 'hosts')]; if(!$auth_filter && !$hostfilter) { return _get_top5_hostgroups_sums($c); } my $hosts = $c->db->get_hosts( - filter => [ $auth_filter, $hostfilter, groups => { '!=', '' } ], + filter => [ $auth_filter, $hostfilter, { groups => { '!=', '' }} ], columns => ['name', 'groups'], debug_hint => 'top hostgroups', );