Skip to content

Commit

Permalink
Merge branch 'MDL-35089_23' of git://github.com/stronk7/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_23_STABLE
  • Loading branch information
Aparup Banerjee committed Sep 5, 2012
2 parents a334d8f + b884cf2 commit 69a52e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/conditionlib.php
Expand Up @@ -596,7 +596,7 @@ public function get_full_information($modinfo=null) {
$course = $COURSE; $course = $COURSE;
} else { } else {
$course = $DB->get_record('course', array('id' => $this->item->course), $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) { foreach ($this->item->conditionscompletion as $cmid => $expectedcompletion) {
if (!$modinfo) { if (!$modinfo) {
Expand Down Expand Up @@ -747,7 +747,7 @@ public function is_available(&$information, $grabthelot=false, $userid=0, $modin
$course = $COURSE; $course = $COURSE;
} else { } else {
$course = $DB->get_record('course', array('id' => $this->item->course), $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); $completion = new completion_info($course);
Expand Down

0 comments on commit 69a52e7

Please sign in to comment.