Permalink
Browse files

MDL-31802: Remove section summaries from navigation_cache

  • Loading branch information...
1 parent 6be7840 commit 51591b2c0e59e348ad1356ac0c1ab569b7e3a5ab @aolley aolley committed Feb 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/navigationlib.php
View
@@ -1924,6 +1924,8 @@ protected function generate_sections_and_activities(stdClass $course) {
$activities = array();
foreach ($sections as $key => $section) {
+ $sections[$key] = clone($section);
+ unset($sections[$key]->summary);
$sections[$key]->hasactivites = false;
if (!array_key_exists($section->section, $modinfo->sections)) {
continue;

0 comments on commit 51591b2

Please sign in to comment.