From: yashodha Date: Wed, 2 Sep 2015 08:30:04 +0000 (+0530) Subject: CRM-17132: Cannot Find Contributions or Advanced Search by Personal Contribution... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4176ca2ee9ac518d3163a89e1d1ab1dd571368a6;p=civicrm-core.git 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 --- 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).