N°1062 - Portal : autocomplete and search = broken : change the max size of the list

This commit is contained in:
acognet
2020-04-02 17:29:39 +02:00
parent c182b1a01f
commit d7211509bd

View File

@@ -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(static::DEFAULT_LIST_LENGTH);
$oSet->SetLimit(MetaModel::GetConfig()->Get('max_display_limit'));
// - Retrieving objects
while ($oItem = $oSet->Fetch())