Issue Bug Resolved

#90056Selection not open after after leaving filtered mode

Jigal van Hemert 01/06/20, 11:35 updated 10/23/26, 12:45

Description

If you select a page in the pagetree in filtered mode the node and then clear the search field, the pagetree returns to its previous state and the selected node may not be visible.

Steps to reproduce:
  • have a pagetree with as few as possible nodes open
  • use search filter to find a page
  • select the page (it’s now open in the right pane)
  • clear filter field

The rootline to the selected page is not expanded.

Expected behaviour:
  • after returning to unfiltered mode a selected node MUST be visible in the page tree (the nodes in its rootline must be opened)
  • after returning to unfiltered mode a selected node SHOULD be inside the visible part of the pagetree (scrolling issue)

NB this is a déjà vu of a similar issue back in version 4.5-4.7 :-)

Reviews 2

History 811

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2020-01-06T12:07:49+00:00" > 01/06/20, 12:07 </span>

    As far as I can see, when you clear the filter you return to any previous selected page on the pagetree – tested with both 9.5 and latest master

    Steps to reproduce:

    Test 1

    1. Open TYPO3 – don’t select any page on pagetree
    2. expand the pagetree to a deep node
    3. use the filter to filter the tree to the page chosen on step 2
    4. click on the page – now it is open in right panel
    5. clear the filter

    RESULT: no page is selected in pagetree

    Test 2

    1. Open TYPO3
    2. expand the pagetree to a node and click on a page – now it is open in right panel
    3. expand the pagetree to a deep node on a different branch
    4. use the filter to filter the tree to the page chosen on step 3
    5. click on the page – now it is open in right pane
    6. clear the filter

    RESULT: the pagetree shows as selected the page selected on step 2

  2. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2025-03-23T21:12:27+00:00" > 03/23/25, 21:12 </span>

    I repeat the test I’ve performed 5 years ago, adding some scenario.

    Prerequisites

    1. TYPO3 (latest main)
    2. a pagetree configured like this one:

    [root]
        Home
            [...]
            [a lot of pages]
            [...]
            I need a hero
                I'm holding out for a hero 
                    til the end of the night
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    Test 1

    Prerequisites:
    the branch with the page “@And he’s gotta be fresh from the fight@” is CLOSED so the pagetree is like this one:

        
    [root]
        Home
            [...]
            [a lot of pages]
            [...]
            I need a hero
                I'm holding out for a hero 
                    til the end of the night
            He's gotta be strong

    1. *Don’t select any page on pagetree*
    2. use the filter to filter the tree and type “@from the fight@“
    3. the pagetree is filtered and now the only portion of the PageTree visible is

    [root]
        Home
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    4. click on the page “@And he’s gotta be fresh from the fight@” – now it is open in right panel
    5. clear the filter

    Results:

    1. The pagetree does not scroll till the point where the selected page was
    2. The branch where the page that was selected is places is *CLOSED*
    3. The carets to open/close the branch of the pagetree do not work anymore (!) – You have to reload the tree from the server to make it work again

    Test 2

    Prerequisites:
    the branch with the page “@And he’s gotta be fresh from the fight@” is OPENED so the pagetree is like this one:

    [root]
        Home
            [...]
            [a lot of pages]
            [...]
            I need a hero
                I'm holding out for a hero 
                    til the end of the night
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    1. *Don’t select any page on pagetree*
    2. use the filter to filter the tree and type “@from the fight@“
    3. the pagetree will be filtered and now the only portion of the PageTree visible is

    [root]
        Home
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    4. click on the page “@And he’s gotta be fresh from the fight@” – now it is open in right panel
    5. clear the filter

    Results:

    1. The pagetree does not scroll till the point where the selected page was
    2. The branch where the page that was selected is places is OPENED , the page is selected
    3. The carets to open/close the branch of the pagetree do not work anymore (!) – You have to reload the tree from the server to make it work again

    —-

    Test 3

    Prerequisites:
    the branch with the page “@And he’s gotta be fresh from the fight@” is CLOSED so the pagetree is like this one:

    [root]
        Home
            [...]
            [a lot of pages]
            [...]
            I need a hero
                I'm holding out for a hero 
                    til the end of the night
            He's gotta be strong

    1. open the first branch and select the page “@til the end of the night”@ on pagetree
    2. use the filter to filter the tree and type “@from the fight@“
    3. the pagetree is filtered and now the only portion of the PageTree visible is

    [root]
        Home
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    4. click on the page “@And he’s gotta be fresh from the fight@” – now it is open in right panel
    5. clear the filter

    Results:

    1. The pagetree does not scroll till the point where the selected page was
    2. The branch where the page that was selected is places is *CLOSED*
    3. The carets to open/close the branch of the pagetree do not work anymore (!) – You have to reload the tree from the server to make it work again

    —

    Test 4

    Prerequisites:
    the branch with the page “ And he's gotta be fresh from the fight “ is OPENED so the pagetree is like this one:

    [root]
        Home
            [...]
            [a lot of pages]
            [...]
            I need a hero
                I'm holding out for a hero 
                    til the end of the night
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    1. open the first branch and select the page “ til the end of the night “ on pagetree
    2. use the filter to filter the tree and type “ from the fight “
    3. the pagetree will be filtered and now the only portion of the PageTree visible is

    [root]
        Home
            He's gotta be strong
                and he's gotta be fast
                        And he's gotta be fresh from the fight

    4. click on the page “@And he’s gotta be fresh from the fight@” – now it is open in right panel
    5. clear the filter

    Results:

    1. The pagetree does not scroll till the point where the selected page was
    2. The branch where the page that was selected is places is OPENED , the page is selected
    3. The carets to open/close the branch of the pagetree do not work anymore (!) – You have to reload the tree from the server to make it work again

    —-

    So, basically test 3 and 4 lead to the same results of 1 and 2

  3. Markus Timtner commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-23T12:45:14+00:00" > 10/23/26, 12:45 </span>

    Applied in changeset commit:82a3f463dce91621218de62109bbbdfadaca2565.