From 01b38d2ed6b81b4c7424d85de854c6a0a4243518 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 15 Apr 2021 10:34:46 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03869=20-=20Portal:=20Fix=20the=20Notice?= =?UTF-8?q?=20"Undefined=20index:=20max=5Fdisplay=5Flimit"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itop-portal-base/portal/src/Controller/ObjectController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-portal-base/portal/src/Controller/ObjectController.php b/datamodels/2.x/itop-portal-base/portal/src/Controller/ObjectController.php index c8efc1b78f..8cafdf69f6 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/Controller/ObjectController.php +++ b/datamodels/2.x/itop-portal-base/portal/src/Controller/ObjectController.php @@ -639,7 +639,7 @@ class ObjectController extends BrickController $oSet = new DBObjectSet($oSearch, array(), array('this' => $oHostObject, 'ac_query' => '%'.$sQuery.'%')); $oSet->OptimizeColumnLoad(array($oSearch->GetClassAlias() => array('friendlyname'))); // Note : This limit is also used in the field renderer by typeahead to determine how many suggestions to display - $oSet->SetLimit(MetaModel::GetConfig()->Get('max_display_limit')); + $oSet->SetLimit(MetaModel::GetConfig()->GetMaxDisplayLimit()); // - Retrieving objects while ($oItem = $oSet->Fetch())