navigation MDL-22044 Fixed bug preventing module AJAX expansion
authorSam Hemelryk <sam@moodle.com>
Wed, 21 Apr 2010 09:40:25 +0000 (09:40 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 21 Apr 2010 09:40:25 +0000 (09:40 +0000)
lib/navigationlib.php

index fadf0bd..2bdd0f9 100644 (file)
@@ -1092,7 +1092,7 @@ class global_navigation extends navigation_node {
             $activitynode->title(get_string('modulename', $cm->modname));
             $activitynode->hidden = (!$cm->visible);
             if ($this->module_extends_navigation($cm->modname)) {
-                $child->nodetype = navigation_node::NODETYPE_BRANCH;
+                $activitynode->nodetype = navigation_node::NODETYPE_BRANCH;
             }
             $activities[$cmid] = $activitynode;
         }