Skip to content

Commit

Permalink
Merge pull request #11757 from eileenmcnaughton/manual
Browse files Browse the repository at this point in the history
CRM-21819 - Do not load 'Submit Credit Card Contribution' button if only pseudo-manual processor exists
  • Loading branch information
monishdeb authored Mar 6, 2018
2 parents 73499ef + b74cf8c commit d1c0c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Financial/BAO/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public static function hasPaymentProcessorSupporting($capabilities = array()) {
$capabilitiesString = implode('', $capabilities);
if (!isset(\Civi::$statics[__CLASS__]['supported_capabilities'][$capabilitiesString])) {
$result = self::getPaymentProcessors($capabilities);
\Civi::$statics[__CLASS__]['supported_capabilities'][$capabilitiesString] = (!empty($result)) ? TRUE : FALSE;
\Civi::$statics[__CLASS__]['supported_capabilities'][$capabilitiesString] = (!empty($result) && array_keys($result) !== array(0)) ? TRUE : FALSE;
}
return \Civi::$statics[__CLASS__]['supported_capabilities'][$capabilitiesString];
}
Expand Down

0 comments on commit d1c0c69

Please sign in to comment.