Skip to content

Commit

Permalink
MDL-74756 availability_completion: Prev activity (completion n/enabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Jan 16, 2023
1 parent 5dbac07 commit a9149c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions availability/condition/completion/classes/condition.php
Expand Up @@ -277,13 +277,13 @@ private function load_course_structure(stdClass $course): void {
if (!isset($sectionprevious[$othercm->section])) {
$sectionprevious[$othercm->section] = $lastcmid;
}
if ($lastcmid) {
$this->modfastprevious[$othercm->id] = $lastcmid;
}
// Load previous to all cms with completion.
if ($othercm->completion == COMPLETION_TRACKING_NONE) {
continue;
}
if ($lastcmid) {
$this->modfastprevious[$othercm->id] = $lastcmid;
}
$lastcmid = $othercm->id;
}
// Fill empty sections index.
Expand Down

0 comments on commit a9149c1

Please sign in to comment.