mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-35089' of git://github.com/stronk7/moodle
This commit is contained in:
commit
379833e0d0
@ -767,7 +767,7 @@ abstract class condition_info_base {
|
||||
$course = $COURSE;
|
||||
} else {
|
||||
$course = $DB->get_record('course', array('id' => $this->item->course),
|
||||
'id, enablecompletion, modinfo', MUST_EXIST);
|
||||
'id, enablecompletion, modinfo, sectioncache', MUST_EXIST);
|
||||
}
|
||||
foreach ($this->item->conditionscompletion as $cmid => $expectedcompletion) {
|
||||
if (!$modinfo) {
|
||||
@ -929,7 +929,7 @@ abstract class condition_info_base {
|
||||
$course = $COURSE;
|
||||
} else {
|
||||
$course = $DB->get_record('course', array('id' => $this->item->course),
|
||||
'id, enablecompletion, modinfo', MUST_EXIST);
|
||||
'id, enablecompletion, modinfo, sectioncache', MUST_EXIST);
|
||||
}
|
||||
|
||||
$completion = new completion_info($course);
|
||||
|
Loading…
x
Reference in New Issue
Block a user