Bug #96288
open
TCA type category not editable/shown for editors if startingPoints are set
Added by David Hoeckele over 2 years ago.
Updated about 1 year ago.
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.
Hello,
can you please tell how SITE:categories.product
is defined? Do you use by chance a comma-separated value?
Kind regards
Andreas
- Status changed from New to Needs Feedback
- Related to Bug #96397: Category starting points don't accept CSV added
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 ...
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).
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.
- Status changed from Needs Feedback to Under Review
Also available in: Atom
PDF