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 17:21:57 +04:30 committed by GitHub
parent 338b60f43b
commit cf05819840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);