Project

General

Profile

Actions

Bug #82032

closed

Copying page containing tt_content irre elements causes error

Added by Tobi Kretschmann over 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2017-08-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

If the content element has an inline relation to tt_content (PID is the same) and the parent page is copied and pasted, the following error message will be displayed.

'1: Repeated attempt to copy record "tt_content:17671" with override values' (see screenshot)

The TCA for tt_content used to reproduce it, is:

$additionalFields = [
    'parent_id'                 => [
        'config' => [
            'type' => 'passthrough',
        ]
    ],
    'item' => [
        'exclude'    => 0,
        'label'      => 'Element',
        'config'     => [
            'type'             => 'inline',
            'foreign_table'    => 'tt_content',
            'foreign_field'    => 'parent_id',
        ],
    ],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $additionalFields);

$GLOBALS['TCA']['tt_content']['types']['content_element']['showitem'] .= '
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
item
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
';    

Files

error-message.jpg (22 KB) error-message.jpg Tobi Kretschmann, 2017-08-03 15:16
reproduce_82032.zip (2.71 KB) reproduce_82032.zip Extension to help reproduce the issue. Readme inside. Rémy DANIEL, 2018-02-14 17:27

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #87351: Delete content elements containing tt_content irre elements causes errorClosed2019-01-07

Actions
Actions

Also available in: Atom PDF