CRM-16645 - Fix param name collision with wp
authorColeman Watts <coleman@civicrm.org>
Wed, 29 Jul 2015 21:15:09 +0000 (17:15 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 29 Jul 2015 21:15:09 +0000 (17:15 -0400)
----------------------------------------
* CRM-16645: PCP Credit Dropdown Hard-coded to 10 results, no 'load more'
  https://issues.civicrm.org/jira/browse/CRM-16645

CRM/Contact/Page/AJAX.php
templates/CRM/Contribute/Form/PCP.js.tpl

index fb2b92e690dd45eeac81764019af0f859dd4b9d3..fa90cd3ac95a584113ea794a13409b3f005b56ea 100644 (file)
@@ -182,8 +182,8 @@ class CRM_Contact_Page_AJAX {
     }
 
     $offset = $count = 0;
-    if (!empty($_GET['page'])) {
-      $page = (int) $_GET['page'];
+    if (!empty($_GET['page_num'])) {
+      $page = (int) $_GET['page_num'];
       $offset = $limit * ($page - 1);
       $limit++;
     }
index 11fa37f793ead5fd17debf465d6ec0151e711d75..0eab30c2613823ef57362284e83136cf0e5831b0 100644 (file)
@@ -35,7 +35,7 @@
       ajax: {
         url: pcpURL,
         data: function(term, page) {
-          return {term: term, page: page};
+          return {term: term, page_num: page};
         },
         results: function(response) {
           return response;