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 #1

Updated by Philipp Seiler about 6 years ago

  • Description updated (diff)
Actions #2

Updated by Philipp Seiler about 6 years ago

  • Priority changed from Should have to Must have
Actions #3

Updated by Alexander Vogt over 5 years ago

This problem still occurs in 9.5.8

Actions #4

Updated by Philipp Seiler over 5 years ago

  • Description updated (diff)
Actions #5

Updated by Christian Eßl over 4 years ago

  • Related to Epic #90676: Clipboard related bugs and features added

Updated by Riccardo De Contardi 5 months ago

Is this issue still valid?

I tried the following test on TYPO3 12.4.16 with EXT:news 11.4.2:

Prerequisites

1) TYPO3 installation with two languages: Italian (default, uid=0) and English (Uid=1)
2) A "News" Sysfolder translated in English
3) A News Item, translated in english
4) A "News2" Folder, translated in English

as per the following screnshot:

Test procedure

1) List view > Go to "News" folder; enable the clipboard and select "Clipboard #1 (multi-selection mode)" - see Cattura1.png
2) Select the news item, click "Transfert to clipboard":

3) Now the news item is in the clipboard and no duplication is present :

4) Go to "News2" sysfolder > List view > Click on "Paste in clipboard content" and press "OK" on the modal
"Move all elements (1) from the clipboard into "news2"?"

Result

The news item and its translation are copied in "News2" folder, and no duplication is present:

Is this test sufficient? Am I missing something or a different test is necessary?

Actions #7

Updated by Riccardo De Contardi 5 months ago

  • Status changed from New to Needs Feedback
Actions

Also available in: Atom PDF