From 8f57314b1e661d422d86b5bf3c44f0d673144ed6 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 21 Apr 2010 09:40:25 +0000 Subject: [PATCH] navigation MDL-22044 Fixed bug preventing module AJAX expansion --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index fadf0bd975e..2bdd0f9040b 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -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; }