mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
host/history: Don't fetch newer entries than what is shown
This commit is contained in:
parent
832b8fe8b9
commit
9544564a3b
1 changed files with 3 additions and 0 deletions
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue