Skip to content

Commit

Permalink
Fix 'Grid completion calculated on user hidden modules' ('Available b…
Browse files Browse the repository at this point in the history
…ut not shown on course page' are still counted).
  • Loading branch information
gjb2048 committed Sep 30, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 2ebaad1 commit b65fd11
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ Version 402.2.1 - TBR
4. Fix 'Problems with creating multiple courses from template via CSV in Grid Format' - #189.
5. Make 'Main content page' link on single section page more accessible.
6. Fix 'Mouseover for shortened titles' - #187.
7. Fix 'Grid completion calculated on user hidden modules' ('Available but not shown on course page' are still counted).

Version 402.2.0 - 16/08/2023
----------------------------
2 changes: 1 addition & 1 deletion classes/output/courseformat/content.php
Original file line number Diff line number Diff line change
@@ -339,7 +339,7 @@ protected function calculate_section_activity_completion($section, $course, $mod
foreach ($modinfo->sections[$section->section] as $cmid) {
$thismod = $modinfo->cms[$cmid];

if ($thismod->available) {
if ($thismod->uservisible) {
$asectionisavailable = true;
if ($completioninfo->is_enabled($thismod) != COMPLETION_TRACKING_NONE) {
$total++;

0 comments on commit b65fd11

Please sign in to comment.