Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15806

getPCPList on new Contribution does not filter

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.5
    • Fix Version/s: 4.5.6
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      To reproduce:
      1) Create a new contribution.
      2) Create >10 PCP pages
      3) Try to allocate the contribution to a PCP page which is not in the first 10 created.

      With >10 PCP pages in the system, you will only ever see the first 10 and it will not filter PCP's based on user input.

      JSON from client side is:

      Array
      (
      [className] => CRM_Contact_Page_AJAX
      [fnName] => getPCPList
      [json] => 1
      [context] => contact
      [reset] => 1
      [term] => Campbell
      [_] => 1420990743660
      [q] => civicrm/ajax/rest
      )

      The request from client side uses the label term and on server side the variable read (instead of term) is 's' which is empty - the empty query returns first 10 records in civicrm_pcp rather than erroring out so fails silently.

      See: CRM/Contact/Page/AJAX.php - function getPCPList()

      PR to follow.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              paulc paul campbell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: