Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-31802: Remove section summaries from navigation_cache

  • Loading branch information...
commit bded2e91a0a0dd3d6a97a296ca3e9f34f77ba946 1 parent 3546266
Adam Olley authored February 28, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/navigationlib.php
2  lib/navigationlib.php
@@ -1636,6 +1636,8 @@ protected function generate_sections_and_activities(stdClass $course) {
1636 1636
         $activities = array();
1637 1637
 
1638 1638
         foreach ($sections as $key => $section) {
  1639
+            $sections[$key] = clone($section);
  1640
+            unset($sections[$key]->summary);
1639 1641
             $sections[$key]->hasactivites = false;
1640 1642
             if (!array_key_exists($section->section, $modinfo->sections)) {
1641 1643
                 continue;

0 notes on commit bded2e9

Please sign in to comment.
Something went wrong with that request. Please try again.