Skip to content

Commit

Permalink
MDL-34783 Retrieve the sectioncache parameter for enrolled courses in…
Browse files Browse the repository at this point in the history
… the course_overview block

The sectioncache field is used by course_modinfo and without it, the
modinfo cache is repeatedly reset.
  • Loading branch information
Andrew Robert Nicols committed Aug 8, 2012
1 parent 470d47f commit 49ed1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/course_overview/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 49ed1b0

Please sign in to comment.