Project

General

Profile

Actions

Bug #80172

closed

"group" TCA field prefills wrong items if relations exist

Added by Bianca Gotthart over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
Start date:
2017-03-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

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)).


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #79455: Relationhandler queries database with non-numeric uidsClosedManuel Selbach2017-01-25

Actions
Related to TYPO3 Core - Bug #80360: Category bug with TYPO3 v8.6.1Closed2017-03-20

Actions
Actions

Also available in: Atom PDF