Project

General

Profile

Actions

Bug #86687

open

Translated record duplicated when copied (multi-selection mode)

Added by Philipp Seiler about 6 years ago. Updated 5 months ago.

Status:
Needs Feedback
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
Cattura1.png (150 KB) Cattura1.png Riccardo De Contardi, 2024-06-30 19:44
Cattura2.png (56.5 KB) Cattura2.png Riccardo De Contardi, 2024-06-30 19:47
Cattura3.png (88 KB) Cattura3.png Riccardo De Contardi, 2024-06-30 19:50
Cattura4.png (162 KB) Cattura4.png Riccardo De Contardi, 2024-06-30 19:53
Cattura5.png (182 KB) Cattura5.png Riccardo De Contardi, 2024-06-30 19:54

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Epic #90676: Clipboard related bugs and featuresAccepted2019-03-27

Actions
Actions

Also available in: Atom PDF