Merge branch 'MDL-64889_36_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_36_STABLE

This commit is contained in:
Andrew Nicols
2019-02-27 14:43:54 +08:00
+1 -1
View File
@@ -75,7 +75,7 @@ class progress {
// Get the number of modules that have been completed.
$completed = 0;
foreach ($modules as $module) {
$data = $completion->get_data($module, false, $userid);
$data = $completion->get_data($module, true, $userid);
$completed += $data->completionstate == COMPLETION_INCOMPLETE ? 0 : 1;
}