Bug #80172
closed"group" TCA field prefills wrong items if relations exist
100%
Description
There is a problem with the TCA type="group" when a new records is created and there are already saved relations in the database.
All existing relations from the mm tables are automatically added to the items field.
I found the problem while using sys_categroy, if there are already existing category-relations in the database.
1. create sy_category
2. create any random data (tt_content, news,...) and add a category relation to that.
3. create a new sys_category -> items are prefilled with the data in the sys_category_relation_mm
The problem is, that the new data has no numeric UID and in the RelationHandler->readMM class the where clause is only set for the uid, if it is an integer (MathUtility::canBeInterpretedAsInteger($uid)).
Updated by Bianca Gotthart over 7 years ago
- Priority changed from Should have to -- undefined --
Updated by Markus Klein over 7 years ago
- Category set to FormEngine aka TCEforms
- Status changed from New to Accepted
- Priority changed from -- undefined -- to Must have
- Is Regression changed from No to Yes
- Sprint Focus set to Stabilization Sprint
Updated by Oliver Hader over 7 years ago
This is caused by changes of issue #79455 which only applies a constraint in RelationHandler if the $uid value is numeric.
See https://review.typo3.org/#/c/51396/3/typo3/sysext/core/Classes/Database/RelationHandler.php
Updated by Oliver Hader over 7 years ago
- Category changed from FormEngine aka TCEforms to DataHandler aka TCEmain
Updated by Gerrit Code Review over 7 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51978
Updated by Oliver Hader over 7 years ago
- Status changed from Under Review to Closed
Handled as follow-up of #79455
Updated by Oliver Hader over 7 years ago
- Status changed from Closed to Under Review
Still pending, thus reopened
Updated by Oliver Hader over 7 years ago
Merged in a0e968c5889ecd7a0706cc44e31144caa6560e05
Updated by Oliver Hader over 7 years ago
- Status changed from Under Review to Resolved
- Assignee set to Oliver Hader
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed