Bug #87984
openTCA inline field with MM relation in workspace.
100%
Description
Inline fields must be adjusted before going to database when using a relation via «foreign_field» or «MM» table. In both case, value given to database will be a list of uids.
\TYPO3\CMS\Core\DataHandling\DataHandler::insertUpdateDB_preprocessBasedOnFieldType function only process inline fields with a «foreign_field» defined.
How to reproduce:
- Create a record with an inline field using «MM» table in «Live workspace». Be sure it's a new one.
- Add more than one relation
- Save & Close
- Go to workspace
- Edit & save the record
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/60309
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/60309
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/60309
Updated by Benni Mack over 5 years ago
- Target version changed from next-patchlevel to Candidate for patchlevel
- TYPO3 Version changed from 10 to 9
- Tags deleted (
[BUG][WORKSPACE])
Hi Cyrill,
can you send in your TCA configuration for the field?
Updated by Cyril Janody over 5 years ago
Hi Benni,
Here is the field configuration:
'section_groups' => [ 'exclude' => true, 'label' => 'Section groups', 'config' => [ 'type' => 'inline', 'foreign_table' => 'tx_studies_domain_model_sectiongroup', 'foreign_sortby' => 'sorting', 'MM' => 'tx_studies_program_sectiongroup_mm', 'maxitems' => 9999, 'appearance' => [ 'collapseAll' => 1, 'levelLinksPosition' => 'top', 'useSortable' => 1, 'enabledControls' => [ 'hide' => true, 'delete' => false, 'info' => true, 'new' => false, 'sort' => false, 'dragdrop' => false, 'localize' => false, ], ], ], ],
Updated by Gerrit Code Review over 4 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/c/Packages/TYPO3.CMS/+/60309
Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60309
Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60309
Updated by Gerrit Code Review about 3 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60309
Updated by Christian Kuhn almost 3 years ago
- Status changed from Under Review to New