Show more than 25 contribution pages on widget edit form.
authorDavid Thompson <davet@gnu.org>
Wed, 7 Jan 2015 20:47:16 +0000 (15:47 -0500)
committerDavid Thompson <davet@gnu.org>
Wed, 7 Jan 2015 20:48:53 +0000 (15:48 -0500)
CiviCRM's API implicitly limits to 25 results unless told otherwise.

wci-helper-functions.php

index 0f538a874d362839cb100db62590efac9385c1df..67399619b2badacd33d4d195f5d448f352e3561d 100644 (file)
@@ -27,7 +27,9 @@
       0 => ts('- select -'),
     );
 
-    $result = civicrm_api3('contribution_page', 'get');
+    $result = civicrm_api3('contribution_page', 'get', array(
+      'rowCount' => 0 // Fetch all contribution pages.
+    ));
     foreach ($result['values'] as $contribution_page) {
       $options[$contribution_page['id']] = $contribution_page['title'];
     }