CRM-14984 - Fix default 25 limit being applied to getlist api when retrieving default...
authorColeman Watts <coleman@civicrm.org>
Sat, 19 Jul 2014 12:22:41 +0000 (13:22 +0100)
committerColeman Watts <coleman@civicrm.org>
Sat, 19 Jul 2014 12:22:41 +0000 (13:22 +0100)
api/v3/Generic/Getlist.php

index 7a5255f3bb77bc9a5c16fa1dcfa1ce91f789a36a..85c148929ea74256816f43457da212d70ef03c2a 100644 (file)
@@ -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;