Issue Bug Resolved

#87984TCA inline field with MM relation in workspace.

Cyril Janody 03/22/19, 15:17 updated 11/18/26, 19:05

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

Reviews 3

History 514

  1. Gerrit Code Review pushed patch set 1 for master to change 60309 status New Under Review <span data-processor="relativetime" data-value="2019-03-22T15:41:52+00:00" > 03/22/19, 15:41 </span>

  2. Benni Mack commented and changed target version TYPO3 Version 10 9 Tags [BUG][WORKSPACE] <span data-processor="relativetime" data-value="2019-03-27T11:52:28+00:00" > 03/27/19, 11:52 </span>

    Hi Cyrill,

    can you send in your TCA configuration for the field?

  3. Cyril Janody commented <span data-processor="relativetime" data-value="2019-03-27T15:26:59+00:00" > 03/27/19, 15:26 </span>

    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,
                        ],
                    ],
                ],
            ],
  4. Benjamin Kott commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-11-18T19:05:12+00:00" > 11/18/26, 19:05 </span>

    Applied in changeset commit:976054576b8cbbfaecb826d06e9b952dea06aa40.