Commit bc8526fa authored by colemanw's avatar colemanw
Browse files

CRM-16555 - Fix double-processors on backend credit card event form

parent 77c081c2
...@@ -432,12 +432,14 @@ LEFT JOIN civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co ...@@ -432,12 +432,14 @@ LEFT JOIN civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
} }
$this->_processors = array(); $this->_processors = array();
foreach ($this->_paymentProcessors as $id => $processor) { foreach ($this->_paymentProcessors as $id => $processor) {
$this->_processors[$id] = ts($processor['name']); if ($processor['is_test'] == ($this->_mode == 'test')) {
if (!empty($processor['description'])) { $this->_processors[$id] = ts($processor['name']);
$this->_processors[$id] .= ' : ' . ts($processor['description']); if (!empty($processor['description'])) {
} $this->_processors[$id] .= ' : ' . ts($processor['description']);
if ($processor['is_recur']) { }
$this->_recurPaymentProcessors[$id] = $this->_processors[$id]; if ($processor['is_recur']) {
$this->_recurPaymentProcessors[$id] = $this->_processors[$id];
}
} }
} }
CRM_Financial_Form_Payment::addCreditCardJs(); CRM_Financial_Form_Payment::addCreditCardJs();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment