Bug #96288
openTCA type category not editable/shown for editors if startingPoints are set
0%
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.
Updated by Andreas Kienast over 3 years ago
Hello,
can you please tell how SITE:categories.product
is defined? Do you use by chance a comma-separated value?
Kind regards
Andreas
Updated by Andreas Kienast over 3 years ago
- Status changed from New to Needs Feedback
Updated by Andreas Kienast over 3 years ago
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
Updated by Benni Mack over 3 years ago
- Related to Bug #96397: Category starting points don't accept CSV added
Updated by David Hoeckele about 3 years ago
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 ...
Updated by Cyrill Gsell about 3 years ago
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).
Updated by Florian Rival about 2 years ago
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.
Updated by Gerrit Code Review about 2 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Gerrit Code Review about 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Gerrit Code Review almost 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Gerrit Code Review 5 months ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Gerrit Code Review 5 months ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Gerrit Code Review 4 months ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77642
Updated by Benni Mack 4 months ago
- Related to Bug #102034: The treeConfig.startingPoints parameter does not work correctly in TYPO3 v 12 (Related to https://forge.typo3.org/issues/102015) added
Updated by Andreas Kienast 2 months ago
- Related to Bug #102015: Incorrect behavior of TCEFORM treeConfig.startingPoints added
Updated by Gerrit Code Review 2 months ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87780
Updated by Gerrit Code Review 2 months ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87780
Updated by Gerrit Code Review 24 days ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87780
Updated by Gerrit Code Review 24 days ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87780
Updated by Gerrit Code Review 1 day ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87780