Skip to content
Snippets Groups Projects
Commit 0290d710 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[BUGFIX] Fix pagetree subtree expansion in search mode

The TreeController was adapted with #104397 to reduce possibly
unneeded getTreeLevels calls and refactored the condition that
sets the hasChildren flag on a node object.
It turns out that this caused search queries to miss the
hasChildren flag, as the depth pre-condition always evaluated
to false (treeLevelsToFetch is 999 is search-mode).

Resolves: #105239
Related: #104397
Releases: main, 12.4, 11.5
Change-Id: I08dc14ae045afd8a526b83ac2b356841af84eacb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86521


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarAndreas Kienast <akienast@scripting-base.de>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarAndreas Kienast <akienast@scripting-base.de>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent a06381c9
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment