Skip to content

Commit

Permalink
Merge pull request #13962 from eileenmcnaughton/test_fix_recur
Browse files Browse the repository at this point in the history
Flush ContributionRecur static cache when flushing processors
  • Loading branch information
eileenmcnaughton authored Apr 5, 2019
2 parents 45cf788 + b04bcc4 commit 2d590b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Civi/Payment/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public function getByName($name, $is_test) {
*/
public function flushProcessors() {
$this->cache = [];
if (isset(\Civi::$statics['CRM_Contribute_BAO_ContributionRecur'])) {
unset(\Civi::$statics['CRM_Contribute_BAO_ContributionRecur']);
}
\CRM_Financial_BAO_PaymentProcessor::getAllPaymentProcessors('all', TRUE);
\CRM_Financial_BAO_PaymentProcessor::getAllPaymentProcessors('live', TRUE);
\CRM_Financial_BAO_PaymentProcessor::getAllPaymentProcessors('test', TRUE);
Expand Down

0 comments on commit 2d590b4

Please sign in to comment.