$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);
return self::_info($force);
}
- static public function &flushEnabledComponents() {
+ static public function flushEnabledComponents() {
self::getEnabledComponents(TRUE);
}
'description' => null,
'help_text' => null,
'on_change' => array(
- array('CRM_Case_Info', 'onToggleComponents')
+ array('CRM_Case_Info', 'onToggleComponents'),
+ array('CRM_Core_Component', 'flushEnabledComponents'),
),
),