Skip to content

Commit

Permalink
Merge pull request #14750 from eileenmcnaughton/pay_notice
Browse files Browse the repository at this point in the history
Fix enotice on formatting credit card details
  • Loading branch information
monishdeb authored Jul 10, 2019
2 parents 19aac10 + 89537f4 commit 45486b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/AbstractEditPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ protected function beginPostProcess() {
* @return void
*/
public static function formatCreditCardDetails(&$params) {
if (in_array('credit_card_type', array_keys($params))) {
if (!empty($params['credit_card_type'])) {
$params['card_type_id'] = CRM_Core_PseudoConstant::getKey('CRM_Core_BAO_FinancialTrxn', 'card_type_id', $params['credit_card_type']);
}
if (!empty($params['credit_card_number']) && empty($params['pan_truncation'])) {
Expand Down

0 comments on commit 45486b9

Please sign in to comment.