From ba3b21c3b385116eca4378c11742be8d5859d73e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 19 Jul 2014 13:22:41 +0100 Subject: [PATCH] CRM-14984 - Fix default 25 limit being applied to getlist api when retrieving default values --- api/v3/Generic/Getlist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v3/Generic/Getlist.php b/api/v3/Generic/Getlist.php index 7a5255f3bb..85c148929e 100644 --- a/api/v3/Generic/Getlist.php +++ b/api/v3/Generic/Getlist.php @@ -117,7 +117,8 @@ function _civicrm_api3_generic_getList_defaults($entity, &$request) { $request['id'] = explode(',', trim($request['id'], ', ')); } // Don't run into search limits when prefilling selection - unset($params['options']['limit'], $params['options']['offset'], $request['params']['options']['limit'], $request['params']['options']['offset']); + $params['options']['limit'] = NULL; + unset($params['options']['offset'], $request['params']['options']['limit'], $request['params']['options']['offset']); $params[$request['id_field']] = is_array($request['id']) ? array('IN' => $request['id']) : $request['id']; } $request['params'] += $params; -- 2.25.1