Issue Bug Closed

#96288TCA type category not editable/shown for editors if startingPoints are set

David Hoeckele 12/08/21, 12:44 updated 11/13/26, 08:53

Description

If startingPoints are set, the categories won’t be shown for editor users. When removing startingPoints, all categories are shown, even for editor.

Using it like this:

'categories' => [
    'exclude' => true,
    'label'   => $langFile . $table . '.categories',           
    'config' => [
        'type' => 'category',
        'treeConfig' => [
            'startingPoints' => '###SITE:categories.product###',
        ]
    ]
]

Setting an int value instead of site-config has the same effect. Also configuring it with tsconfig settings.
For the admin user everything works fine. Also checked user settings for editor, looks good to me.

Reviews 3

History 1333

Show 78 earlier messages
  1. Andreas Kienast commented <span data-processor="relativetime" data-value="2021-12-20T13:56:04+00:00" > 12/20/21, 13:56 </span>

    Hello,

    can you please tell how SITE:categories.product is defined? Do you use by chance a comma-separated value?

    Kind regards
    Andreas

  2. Andreas Kienast commented <span data-processor="relativetime" data-value="2021-12-20T14:13:44+00:00" > 12/20/21, 14:13 </span>

    I’ve created https://forge.typo3.org/issues/96397 and pushed a patch to https://review.typo3.org/c/Packages/TYPO3.CMS/+/72738, can you please check whether this solves your issue?

    Kind regards
    Andreas

  3. David Hoeckele commented <span data-processor="relativetime" data-value="2022-01-03T12:44:30+00:00" > 01/03/22, 12:44 </span>

    Thanks for your reply – i have just configured one single integer value.

    It’s only an issue with the editors – the category selection appears empty if an startingPoint is configured. As an admin user i can see the categories with all possible variants (site config, TCA, TSconfig) and it works as expected …

  4. Cyrill Gsell commented <span data-processor="relativetime" data-value="2022-03-02T12:15:45+00:00" > 03/02/22, 12:15 </span>

    I have the same problem, it happens when you set a spartingPoint in the TCA and set the same starting point as a category mount in the backend user group. I think the problem occurs at this point TYPO3\CMS\Backend\Security\CategoryPermissionsAspect::lookUpCategoryMountPointInTreeNodes; only the child nodes are checked if they are in one of the selected category mount points but not the parent node (startingPoint).

  5. Florian Rival commented <span data-processor="relativetime" data-value="2023-01-30T12:26:21+00:00" > 01/30/23, 12:26 </span>

    Same problem for me when I set the startingPoints through TCEFORM :

    TCEFORM.tx_mytable.domaine.config.treeConfig.startingPoints = 10

    but if I set two categories :

    TCEFORM.tx_mytable.domaine.config.treeConfig.startingPoints = 10, 20

    The problem disappears.
    In method DatabaseTreeDataProvider::loadTreeData() , implementation is different if you have one startingPoint category or multiples startingPoints.

    With one startingPoint, only sub-categories are stored in $this->treeData.
    With multiple startingPoints, only TCEFORM.tx_mytable.domaine.config.treeConfig.startingPoints are stored in $this->treeData.

  6. Gerrit Code Review pushed patch set 1 for main to change 77642 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2023-01-30T16:31:50+00:00" > 01/30/23, 16:31 </span>

  1. Florian Rival commented and changed TYPO3 Version 11 13 <span data-processor="relativetime" data-value="2026-06-02T11:04:20+00:00" > 06/02/26, 11:04 </span>

    This bug is still present with version 13, it’s a regression and it exist since 4 years now.

    I’ve seen that the patch was rejected with reason “Stale and hard to test” but it should be corrected.

    As a workaround, we can add a fake category id at startingPoints, instead of:

    TCEFORM.tx_mytable.categories.config.treeConfig.startingPoints = 10

    add a false starting point like ‘-1’ or ‘0’:

    TCEFORM.tx_mytable.categories.config.treeConfig.startingPoints = 10, -1

    But it’s just a workaround.

  2. Benni Mack commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-13T08:53:12+00:00" > 11/13/26, 08:53 </span>

    Fixed with #106559