CRM-15806 - getPCPList on new Contribution does not filter
authorPaul Campbell <paul.campbell@childreach.org.uk>
Sun, 11 Jan 2015 16:02:55 +0000 (16:02 +0000)
committerPaul Campbell <paul.campbell@childreach.org.uk>
Sun, 11 Jan 2015 16:02:55 +0000 (16:02 +0000)
https://issues.civicrm.org/jira/browse/CRM-15806

CRM/Contact/Page/AJAX.php

index 242eb75c83902708c841284a853153466b2c1688..11a3202147deddf92f5311c60ef3e1028a6c42f1 100644 (file)
@@ -199,7 +199,7 @@ class CRM_Contact_Page_AJAX {
    * Function to fetch PCP ID by PCP Supporter sort_name, also displays PCP title and associated Contribution Page title
    */
   static function getPCPList() {
-    $name  = CRM_Utils_Array::value('s', $_GET);
+    $name  = CRM_Utils_Array::value('term', $_GET);
     $name  = CRM_Utils_Type::escape($name, 'String');
     $limit = '10';