test fix - flush cache when creating contribution page
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 17 Jun 2014 01:58:19 +0000 (13:58 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 17 Jun 2014 01:58:19 +0000 (13:58 +1200)
api/v3/ContributionPage.php

index 360128ba95f7a0e981f830caff18517a430bca9e..bff43b90c470ad957e7aef5eebb4e1a30ee785e7 100644 (file)
  * @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;
 }
 
 /**