Issue Bug Closed

#39820unnecessary moveNode in class.t3lib_tree_pagetree_commands.php createNode()

Tobias Schultheiss 08/15/12, 09:41 updated 10/02/18, 12:15

Description

On a Typo3 4.6.10 installation i had the problem that the creation of a new page via drag&drop always timed out. A Tracking revealed that the creation of the new page took over 100 Seconds (thats pretty ugly but another issue). I finally tracked the bad Performance to the function createNode() in t3lib/tree/pagetree/class.t3lib_tree_pagetree_commands.php.
In said function is a comparison:
if ($parentNode->getWorkspaceId() !== $targetId) {
self::moveNode($node, $targetId);
}
which fails although both ids are the same. After i did a typecast to int on both of the ids, the comparison worked, the moveNode wasn’t executed anymore and the duration fell to ~10 Seconds.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.