Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-42795 course: fixed param course in sql

course_sections has course field and not courseid, hence replaced it with course.
  • Loading branch information...
commit 6382c482c877220aafae890ddfb8a4f25fad9bdf 1 parent d214057
@rdebleu rdebleu authored rajeshtaneja committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/format/lib.php
View
2  course/format/lib.php
@@ -572,7 +572,7 @@ public function get_format_options($section = null) {
$sectionid = $section->id;
} else if ($this->courseid && is_int($section) &&
($sectionobj = $DB->get_record('course_sections',
- array('section' => $section, 'courseid' => $this->courseid), 'id'))) {
+ array('section' => $section, 'course' => $this->courseid), 'id'))) {
// course section format options will be returned
$sectionid = $sectionobj->id;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.