Skip to content
Snippets Groups Projects
Commit b452aac4 authored by Michael Kessler's avatar Michael Kessler
Browse files

[BUGFIX] Fix module navigation in sg_news

parent 88c7d7c2
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,8 @@ define([
});
}
parent.TYPO3.ModuleMenu.App.showModule(module, 'id=' + id);
} else {
} else if (Viewport.NavigationContainer.PageTree && Viewport.NavigationContainer.PageTree.instance) {
// Used for TYPO3 10
var pageTreeNodes = Viewport.NavigationContainer.PageTree.instance.nodes;
for (var nodeIndex in pageTreeNodes) {
if (pageTreeNodes.hasOwnProperty(nodeIndex) && pageTreeNodes[nodeIndex].identifier === parseInt(id)) {
......@@ -71,6 +72,8 @@ define([
}
}
ModuleMenu.App.showModule(module, 'id=' + id);
} else {
ModuleMenu.App.showModule(module, 'id=' + id);
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment