Merge branch 'MDL-35089' of git://github.com/stronk7/moodle

This commit is contained in:
Aparup Banerjee 2012-09-05 15:02:17 +08:00
commit 379833e0d0

View File

@ -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);