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

This commit is contained in:
Andrew Nicols 2019-02-27 14:44:18 +08:00
commit 3235bb616d

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