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 470d47f commit 49ed1b0d0b9bc49365e7a5c3511114e31b3d5748 @andrewnicols andrewnicols committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/course_overview/locallib.php
@@ -125,7 +125,7 @@ function block_course_overview_get_sorted_courses() {
$limit = block_course_overview_get_max_user_courses();
- $courses = enrol_get_my_courses('id, shortname, fullname, modinfo');
+ $courses = enrol_get_my_courses('id, shortname, fullname, modinfo, sectioncache');
$site = get_site();
if (array_key_exists($site->id,$courses)) {

0 comments on commit 49ed1b0

Please sign in to comment.