mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-74756-master' of https://github.com/sh-csg/moodle
This commit is contained in:
commit
385721f022
1 changed files with 3 additions and 3 deletions
|
@ -277,13 +277,13 @@ class condition extends \core_availability\condition {
|
|||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue