Bug #82461

Backend/TCA: fieldControl->addRecord removes old relations after creating an new entry in the foreign table for the new relation

Added by Dieter Porth 2 months ago. Updated 17 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-12
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 8.7.6.: I have a problem with the addRecord-Wizard (fieldControl) in a MN-Relation.

given:
I have defined two relations.

when:
If I press the plus near the selectMulipleSideBySide-Element in the backend, I can create a new record for a new relation.

mistake:
After saving the new record, the new relation to the new record will replace the old two relations.

expected:
After saving the new record, I will see three (= one new + two old) relations.

I testet the option in fieldControl with 'append' and 'prepend' in 'setValue: in TCA
I changed variated multiple to 1

See TCA-example for Relationfield
@
'study_programs' => array(
'exclude' => 1,
'label' => 'LLL:EXT:... study_programs',
'config' => array(
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_..',
'MM' => 'tx_...,
...
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => false,
'options' => [
'title' => 'Edit The selected record!',
],
],
'addRecord' => [
'disabled' => false,
'renderType' => 'addRecord',
'options' => [
'title' => 'Definiere ',
'setValue' => 'append',
'pid' => '###CURRENT_PID###',
],
],
],
),
),

@


Related issues

Related to TYPO3 Core - Bug #81855: Add new record wizard fails on Save&Close with "select" field and MM setted New 2017-07-13

History

#1 Updated by Christian Heindl about 1 month ago

I can confirm that issue. Affects also TYPO3 7 LTS.

#2 Updated by Simon Praetorius about 1 month ago

I can confirm this behavior as well.

#3 Updated by Michael Stopp 17 days ago

Still a problem in 8.7.8.

#4 Updated by Riccardo De Contardi 10 days ago

  • Related to Bug #81855: Add new record wizard fails on Save&Close with "select" field and MM setted added

Also available in: Atom PDF