Merge branch 'MDL-64889_master' of https://github.com/marxjohnson/moodle

This commit is contained in:
Andrew Nicols 2019-02-27 14:38:34 +08:00
commit ec442a39dc

View file

@ -75,7 +75,7 @@ class progress {
// Get the number of modules that have been completed. // Get the number of modules that have been completed.
$completed = 0; $completed = 0;
foreach ($modules as $module) { 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; $completed += $data->completionstate == COMPLETION_INCOMPLETE ? 0 : 1;
} }