diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index f3e9fabf7e9a..a60aea1bda2f 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -927,8 +927,11 @@ public static function buildSearchForm(&$form) { FALSE, array('class' => 'crm-select2', 'multiple' => 'multiple', 'placeholder' => ts('- any -')) ); - $form->addSelect('payment_instrument_id', - array('entity' => 'contribution', 'multiple' => 'multiple', 'label' => ts('Payment Method'), 'option_url' => NULL, 'placeholder' => ts('- any -')) + // use contribution_payment_instrument_id instead of payment_instrument_id + // Contribution Edit form (pop-up on contribution/Contact(display Result as Contribution) open on search form), + // then payment method change action not working properly because of same html ID present two time on one page + $form->addSelect('contribution_payment_instrument_id', + array('entity' => 'contribution', 'field' => 'payment_instrument_id', 'multiple' => 'multiple', 'label' => ts('Payment Method'), 'option_url' => NULL, 'placeholder' => ts('- any -')) ); $form->add('select', diff --git a/templates/CRM/Contribute/Form/Search/Common.tpl b/templates/CRM/Contribute/Form/Search/Common.tpl index 9b94d9df5491..792bf2b0aef4 100644 --- a/templates/CRM/Contribute/Form/Search/Common.tpl +++ b/templates/CRM/Contribute/Form/Search/Common.tpl @@ -40,8 +40,8 @@