From: Coleman Watts Date: Sat, 19 Jul 2014 12:22:41 +0000 (+0100) Subject: CRM-14984 - Fix default 25 limit being applied to getlist api when retrieving default... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ba3b21c3b385116eca4378c11742be8d5859d73e;p=civicrm-core.git CRM-14984 - Fix default 25 limit being applied to getlist api when retrieving default values --- 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;