Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d214057
)
MDL-42795 course: fixed param course in sql
author
Renaat Debleu
<rdebleu@ewallah.net>
Mon, 11 Nov 2013 02:19:46 +0000
(10:19 +0800)
committer
Rajesh Taneja
<rajesh@moodle.com>
Mon, 11 Nov 2013 02:24:09 +0000
(10:24 +0800)
course_sections has course field and not courseid, hence replaced it with course.
course/format/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/course/format/lib.php
b/course/format/lib.php
index
1980441
..
38c4a69
100644
(file)
--- a/
course/format/lib.php
+++ b/
course/format/lib.php
@@
-572,7
+572,7
@@
abstract class format_base {
$sectionid = $section->id;
} else if ($this->courseid && is_int($section) &&
($sectionobj = $DB->get_record('course_sections',
- array('section' => $section, 'course
id
' => $this->courseid), 'id'))) {
+ array('section' => $section, 'course' => $this->courseid), 'id'))) {
// course section format options will be returned
$sectionid = $sectionobj->id;
} else {