Project

General

Profile

Actions

Bug #87984

open

TCA inline field with MM relation in workspace.

Added by Cyril Janody over 5 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Workspaces
Start date:
2019-03-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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?

Actions #5

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,
                    ],
                ],
            ],
        ],

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

Updated by Christian Kuhn almost 3 years ago

  • Status changed from Under Review to New
Actions

Also available in: Atom PDF