Bug #82461
closedStory #69617: FormEngine bugs
Backend/TCA: fieldControl->addRecord removes old relations after creating an new entry in the foreign table for the new relation
100%
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###', ], ], ], ), ),
Files
Updated by Christian Heindl about 7 years ago
I can confirm that issue. Affects also TYPO3 7 LTS.
Updated by Simon Praetorius about 7 years ago
I can confirm this behavior as well.
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #81855: Add new record wizard fails on Save&Close with "select" field and MM setted added
Updated by Susanne Moog almost 7 years ago
- Category set to FormEngine aka TCEforms
Updated by Gerrit Code Review almost 7 years ago
- Status changed from New 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/55826
Updated by Mathias Brodala almost 7 years ago
- Related to Bug #76863: MM Relation with selectMultipleSideBySide Field - Add wizard resets the MM Relation added
Updated by Kevin Ditscheid almost 7 years ago
- Is duplicate of Bug #82016: Wizards add still not working with MM added
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55826
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55826
Updated by Gerrit Code Review over 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55826
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55978
Updated by Mathias Brodala over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 840f12751346d7f2db3ab75d7f7d7bf72dd9bd95.
Updated by Dmitry Dulepov over 6 years ago
- File typo3-cms_82461.patch typo3-cms_82461.patch added
If anybody needs the fix for TYPO3 v7, the patch is attached. University of Basel (Switzerland) sponsored the backport.
Updated by Gone With the Wind over 5 years ago
- Related to Bug #84208: TCA: using addRecord in a selectMultipleSideBySide select field overwrites existing data added