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',
<tr>
<td>
<div class="float-left">
- <label>{$form.payment_instrument_id.label}</label> <br />
- {$form.payment_instrument_id.html|crmAddClass:twenty}
+ <label>{$form.contribution_payment_instrument_id.label}</label> <br />
+ {$form.contribution_payment_instrument_id.html|crmAddClass:twenty}
</div>
<div class="float-left" id="contribution_check_number_wrapper">
{$form.contribution_check_number.label} <br />