Skip to content
Snippets Groups Projects
Commit 8e1a15e6 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing js gotpage bug

parent 7b1c987d
No related branches found
No related tags found
1 merge request!6Feature 4 3
......@@ -89,9 +89,12 @@ function sgMailGoToPage(uid, path) {
} else {
var tree = top.Ext.getCmp('typo3-pagetree');
if (tree) {
var pageNode = tree.activeTree.getNodeById('p' + uid);
var elements = path.split('/');
var pageNode = tree.activeTree.getNodeById(elements[elements.length - 1]);
tree.activeTree.selectPath(path);
tree.activeTree.commandProvider.singleClick(pageNode, tree.activeTree);
if (pageNode) {
tree.activeTree.commandProvider.singleClick(pageNode, tree.activeTree);
}
}
var separator = '?';
if (top.currentSubScript.indexOf('?') !== -1) {
......
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