From fb3dadee2d7b1efc895428ab3e985b4acb2d2eef Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 10 Jul 2015 11:28:14 -0400 Subject: [PATCH] CRM-16825 - Respect quicksearch result count setting --- api/v3/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Contact.php b/api/v3/Contact.php index de305dd331..1e7cfc23fc 100644 --- a/api/v3/Contact.php +++ b/api/v3/Contact.php @@ -723,7 +723,7 @@ function civicrm_api3_contact_getquick($params) { } $from = implode(' ', $from); $limit = (int) CRM_Utils_Array::value('limit', $params); - $limit = $limit > 0 ? $limit : 10; + $limit = $limit > 0 ? $limit : CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SEARCH_PREFERENCES_NAME, 'search_autocomplete_count', NULL, 10); // add acl clause here list($aclFrom, $aclWhere) = CRM_Contact_BAO_Contact_Permission::cacheClause('cc'); -- 2.25.1