Permalink
Browse files

MDL-34783 Retrieve the sectioncache parameter for enrolled courses in…

… the course_overview block

The sectioncache field is used by course_modinfo and without it, the
modinfo cache is repeatedly reset.
  • Loading branch information...
1 parent 02814bf commit 55a2b03ef1d8f6d40e7b941cafb06a40a9d0afee @andrewnicols andrewnicols committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/course_overview/block_course_overview.php
View
2 blocks/course_overview/block_course_overview.php
@@ -64,7 +64,7 @@ public function get_content() {
$courses_limit = $courses_limit + 1;
}
- $courses = enrol_get_my_courses('id, shortname, modinfo', 'visible DESC,sortorder ASC', $courses_limit);
+ $courses = enrol_get_my_courses('id, shortname, modinfo, sectioncache', 'visible DESC,sortorder ASC', $courses_limit);
$site = get_site();
$course = $site; //just in case we need the old global $course hack

0 comments on commit 55a2b03

Please sign in to comment.