Skip to content
Snippets Groups Projects
Commit b516fae1 authored by totten's avatar totten
Browse files

CRM_Core_Component::flushEnabledComponents - Trigger after any change to...

CRM_Core_Component::flushEnabledComponents - Trigger after any change to settings (not just CiviCase activation)
parent b445233b
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,6 @@ class CRM_Case_Info extends CRM_Core_Component_Info {
$config = CRM_Core_Config::singleton();
CRM_Admin_Form_Setting_Component::loadCaseSampleData($config->dsn, $config->sqlDir . 'case_sample.mysql');
CRM_Admin_Form_Setting_Component::loadCaseSampleData($config->dsn, $config->sqlDir . 'case_sample1.mysql');
CRM_Core_Component::flushEnabledComponents();
if (!CRM_Case_BAO_Case::createCaseViews()) {
$msg = ts("Could not create the MySQL views for CiviCase. Your mysql user needs to have the 'CREATE VIEW' permission");
CRM_Core_Error::fatal($msg);
......
......@@ -99,7 +99,7 @@ class CRM_Core_Component {
return self::_info($force);
}
static public function &flushEnabledComponents() {
static public function flushEnabledComponents() {
self::getEnabledComponents(TRUE);
}
......
......@@ -627,7 +627,8 @@ When enabled, statistics about your CiviCRM installation are reported anonymousl
'description' => null,
'help_text' => null,
'on_change' => array(
array('CRM_Case_Info', 'onToggleComponents')
array('CRM_Case_Info', 'onToggleComponents'),
array('CRM_Core_Component', 'flushEnabledComponents'),
),
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment