Flush pseudoconstant cache when adding a financial account, which affects option...
authorColeman Watts <coleman@civicrm.org>
Thu, 23 Apr 2020 19:02:08 +0000 (15:02 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 23 Apr 2020 23:58:55 +0000 (19:58 -0400)
CRM/Financial/BAO/FinancialAccount.php

index 9048d99028a8a0dc585dc5cac60c0897cab527ac..72b9b7a13a99b9e232dd1c6addfe2180f7113923 100644 (file)
@@ -113,6 +113,7 @@ class CRM_Financial_BAO_FinancialAccount extends CRM_Financial_DAO_FinancialAcco
       $op = 'edit';
     }
     CRM_Utils_Hook::post($op, 'FinancialAccount', $financialAccount->id, $financialAccount);
+    CRM_Core_PseudoConstant::flush();
 
     return $financialAccount;
   }