Bug #86687

Translated record duplicated when copied (multi-selection mode)

Added by Philipp Seiler almost 3 years ago. Updated about 2 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2018-10-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
backend,clipboard,copy,duplicate
Complexity:
Is Regression:
Sprint Focus:

Description

When I use the multi-selection mode of the clipboard with a record (sys_language_uid = 0) and its translation selected, then translated records will show up multiple times in the clipboard. This problem does not occur, when the single record mode or the copy button next to the record in the list is used.

When inserting the copied records into a new sysfolder (multi-selection mode), duplicates of the translations will be created.

Problem seems to be in \TYPO3\CMS\Backend\Clipboard\Clipboard->getContentFromTab(), where for every record an entry in the clipboard is made. First the root-item will be added. This will also add the translated record to the clipboard via $this->getLocalizations($table, $rec). After that, the translated record from the multi-selection mode is added again, leading to duplicates.


Files

clipboard01.png (20.5 KB) clipboard01.png Using the copy-button next to a news record. Philipp Seiler, 2018-10-18 17:56
clipboard02.png (12.6 KB) clipboard02.png Inserting the copied news into a new sysfolder. Philipp Seiler, 2018-10-18 17:56
clipboard03.png (21 KB) clipboard03.png Everything OK, no duplicates in news DB table. Philipp Seiler, 2018-10-18 17:56
clipboard04.png (20.8 KB) clipboard04.png Using the multi-selection mode (root and translated record selected) to transfer items to the clipboard. A duplicate appears. Philipp Seiler, 2018-10-18 17:56
clipboard05.png (14.5 KB) clipboard05.png Again inserting the copied news into a new sysfolder. Philipp Seiler, 2018-10-18 17:56
clipboard06.png (17.3 KB) clipboard06.png Looks fine, but a duplicate record of the translation can be found in the news DB table. Philipp Seiler, 2018-10-18 17:56

Related issues

Related to TYPO3 Core - Epic #90676: Clipboard related bugs and featuresAccepted2020-03-07

Actions

Also available in: Atom PDF