MDL-71973 analytics cli: fix enabling model bug

Fix the exception at line 143 caused by wrong argument for constructor in line 140
This commit is contained in:
mohalisad
2021-06-21 18:51:51 +04:30
committed by GitHub
parent 10daae7ab7
commit fd7ce03fd2
+1 -1
View File
@@ -137,7 +137,7 @@ if (!empty($validdatasets) && !$model->is_enabled() && $options['non-interactive
}
// Refresh the instance to prevent unexpected issues.
$model = new \core_analytics\model($modelobj);
$model = new \core_analytics\model($options['modelid']);
// Set the time splitting method file and enable it.
$model->enable($input);