From 6013e5a878733b08e46358a0a741580a546e9802 Mon Sep 17 00:00:00 2001 From: Andrejs Verza Date: Fri, 24 Jan 2020 18:03:45 +0200 Subject: [PATCH] added search limit to the latest data --- frontends/php/latest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontends/php/latest.php b/frontends/php/latest.php index 9cf72cf002..1458ab7fce 100644 --- a/frontends/php/latest.php +++ b/frontends/php/latest.php @@ -107,6 +107,8 @@ $sortOrder = getRequest('sortorder', CProfile::get('web.'.$page['file'].'.sortor CProfile::update('web.'.$page['file'].'.sort', $sortField, PROFILE_TYPE_STR); CProfile::update('web.'.$page['file'].'.sortorder', $sortOrder, PROFILE_TYPE_STR); +$config = select_config(); + $applications = []; $items = []; $child_groups = []; @@ -201,6 +203,7 @@ if ($hosts) { 'filter' => [ 'status' => [ITEM_STATUS_ACTIVE] ], + 'limit' => $config['search_limit'] + 1, 'preservekeys' => true ]); @@ -430,8 +433,6 @@ else { $tab_rows = []; -$config = select_config(); - // Resolve delay, history and trend macros. $update_interval_parser = new CUpdateIntervalParser(['usermacros' => true]); $simple_interval_parser = new CSimpleIntervalParser(); -- 2.21.0.windows.1