From 4176ca2ee9ac518d3163a89e1d1ab1dd571368a6 Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 2 Sep 2015 14:00:04 +0530 Subject: [PATCH] CRM-17132: Cannot Find Contributions or Advanced Search by Personal Contribution Page ---------------------------------------- * CRM-17132: Cannot Find Contributions or Advanced Search by Personal Contribution Page https://issues.civicrm.org/jira/browse/CRM-17132 --- CRM/Contribute/BAO/Query.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 02a6551680..243281412c 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -895,10 +895,11 @@ class CRM_Contribute_BAO_Query { array('entity' => 'contribution', 'label' => ts('Payment Method'), 'option_url' => NULL, 'placeholder' => ts('- any -')) ); - // Fixme: Not a true entityRef field. Relies on PCP.js.tpl - $form->add('text', 'contribution_pcp_made_through_id', ts('Personal Campaign Page'), array('class' => 'twenty', 'id' => 'pcp_made_through_id', 'placeholder' => ts('- any -'))); - // stores the label - $form->add('hidden', 'pcp_made_through'); + + $form->add('select', + 'contribution_pcp_made_through_id', + ts('Personal Campaign Page'), + CRM_Contribute_PseudoConstant::pcPage(), FALSE, array('class' => 'crm-select2', 'multiple' => 'multiple', 'placeholder' => ts('- any -'))); $statusValues = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'contribution_status_id'); // Remove status values that are only used for recurring contributions or pledges (In Progress, Overdue). -- 2.25.1