Skip to content

Commit

Permalink
Merge branch 'MDL-74756-master' of https://github.com/sh-csg/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Jan 19, 2023
2 parents fad05d7 + a9149c1 commit 385721f
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 385721f

Please sign in to comment.