navigation MDL-22044 Fixed bug preventing module AJAX expansion

This commit is contained in:
Sam Hemelryk 2010-04-21 09:40:25 +00:00
parent 16d0b44022
commit 8f57314b1e

View File

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