From: David Thompson <davet@gnu.org>
Date: Wed, 7 Jan 2015 20:47:16 +0000 (-0500)
Subject: Show more than 25 contribution pages on widget edit form.
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3554561dc015f24eb7f9b96a803fd4819cbef45;p=com.zyxware.civiwci.git

Show more than 25 contribution pages on widget edit form.

CiviCRM's API implicitly limits to 25 results unless told otherwise.
---

diff --git a/wci-helper-functions.php b/wci-helper-functions.php
index 0f538a8..6739961 100644
--- a/wci-helper-functions.php
+++ b/wci-helper-functions.php
@@ -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'];
     }