From 8f3dc9894531e5c80df0cca2150a18cb2a22c3c3 Mon Sep 17 00:00:00 2001 From: Web Access Date: Tue, 30 Jun 2015 17:42:37 +0530 Subject: [PATCH] Fix for CRM-16745 --- CRM/Contact/Form/Search/Advanced.php | 1 + CRM/Contribute/BAO/Query.php | 2 +- CRM/Contribute/Form/Search.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Search/Advanced.php b/CRM/Contact/Form/Search/Advanced.php index 61d1444e52..33c037ecf7 100644 --- a/CRM/Contact/Form/Search/Advanced.php +++ b/CRM/Contact/Form/Search/Advanced.php @@ -376,6 +376,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search { 'activity_subject', 'contribution_page_id', 'contribution_product_id', + 'payment_instrument_id', ); foreach ($specialParams as $element) { $value = CRM_Utils_Array::value($element, $this->_formValues); diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index dd38f66f0a..8461b9d31b 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -901,7 +901,7 @@ class CRM_Contribute_BAO_Query { ); $form->addSelect('payment_instrument_id', - array('entity' => 'contribution', 'label' => ts('Payment Method'), 'option_url' => NULL, 'placeholder' => ts('- any -')) + array('entity' => 'contribution', 'multiple' => 'multiple', 'label' => ts('Payment Method'), 'option_url' => NULL, 'placeholder' => ts('- any -')) ); // Fixme: Not a true entityRef field. Relies on PCP.js.tpl diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index bd5d539443..138202af73 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -266,6 +266,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { 'contribution_page_id', 'contribution_product_id', 'invoice_id', + 'payment_instrument_id', ); foreach ($specialParams as $element) { $value = CRM_Utils_Array::value($element, $this->_formValues); -- 2.25.1