From 76e112c3554179753dd9fa07d5d3e7089858c7ca Mon Sep 17 00:00:00 2001 From: marvin-bilharz <140318395+marvin-bilharz@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:47:49 +0100 Subject: [PATCH] Update treenodelocator.js since globalState.pathIds is an array of strings, to compare it, rootNodeId has to be string too. Otherwise index wont be found. Tested in Chrome 131.0.6778.108 --- public/js/pimcore/treenodelocator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/pimcore/treenodelocator.js b/public/js/pimcore/treenodelocator.js index 6bebd583f5..5ab3822b0b 100644 --- a/public/js/pimcore/treenodelocator.js +++ b/public/js/pimcore/treenodelocator.js @@ -154,7 +154,7 @@ pimcore.treenodelocator = function() var locateConfig = globalState.locateConfigs[globalState.currentTreeIndex]; var tree = locateConfig.tree; var rootNode = tree.tree.getRootNode(); - var rootNodeId = rootNode.getId(); + var rootNodeId = rootNode.getId().toString(); // Tree root may be shifted to a subnode and the item to be shown // is out of tree scope - don't continue if this is the case: