From: Eileen McNaughton Date: Tue, 17 Jun 2014 01:58:19 +0000 (+1200) Subject: test fix - flush cache when creating contribution page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=10a3c9b94242cba767eb77c679e33fdd181df04f;p=civicrm-core.git test fix - flush cache when creating contribution page --- diff --git a/api/v3/ContributionPage.php b/api/v3/ContributionPage.php index 360128ba95..bff43b90c4 100644 --- a/api/v3/ContributionPage.php +++ b/api/v3/ContributionPage.php @@ -47,7 +47,10 @@ * @access public */ function civicrm_api3_contribution_page_create($params) { - return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); + $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); + CRM_Contribute_PseudoConstant::flush('contributionPageAll'); + CRM_Contribute_PseudoConstant::flush('contributionPageActive'); + return $result; } /**