From 9544564a3b6caaaedfe34fed32bbcef00b8cf769 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 8 Nov 2021 16:25:59 +0100 Subject: [PATCH] host/history: Don't fetch newer entries than what is shown --- application/controllers/HostController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php index 535a98b6..c573d2c4 100644 --- a/application/controllers/HostController.php +++ b/application/controllers/HostController.php @@ -24,6 +24,7 @@ use Icinga\Module\Icingadb\Widget\Detail\QuickActions; use Icinga\Module\Icingadb\Widget\ItemList\HostList; use Icinga\Module\Icingadb\Widget\ItemList\HistoryList; use Icinga\Module\Icingadb\Widget\ItemList\ServiceList; +use ipl\Stdlib\Filter; use ipl\Web\Url; use ipl\Web\Widget\Tabs; @@ -150,6 +151,8 @@ class HostController extends Controller $history->limit($page * $limitControl->getLimit()); } + $history->filter(Filter::lessThanOrEqual('event_time', $before)); + yield $this->export($history); $this->addControl((new HostList([$this->host]))