Bug #87118
closedCannot copy content element, if multi-selection mode is selected in clipboard
100%
Description
- Create a new content element, e.g. a textmedia element.
- Go to the list module of the page, on which the content element was just created.
- Select mulit-selection mode for clipboard (if it has not already been selected).
- Go back to the page module.
- Copy the content element by clicking its top-left icon and selecting "Copy" from the context menu.
- Insert the copied element below/above the original element with the now visible "Paste after this record"-Buttons.
Site will reload, no error, but no copy has been created!
Also no record has been added to the tt_content table.
The array $this->clipData['tab_1']['el'] in the \TYPO3\CMS\Backend\Clipboard\Clipboard class is simply empty.
When switching to single-mode, $this->clipData['normal']['el'] will hold the correct tt_content reference.
Files
Updated by Christian Eßl about 4 years ago
- Related to Epic #90676: Clipboard related bugs and features added
Updated by Riccardo De Contardi about 4 years ago
- File cattura.png cattura.png added
The issue is still present on 10.4.0-dev, but it seems like an incorrect usage of the clipboard itself:
Correct me if I am wrong but the multi-selection clipboard requires to explicit select and add the records using the icons as on the following attached image
I think that one way to resolve this issue is that when you switch back to Page view, you switch back to the Normal (single record mode) (i.e. this one should be the only mode available on Page module). Are there unwanted side effects?
Updated by Paul Hansen almost 4 years ago
I trip over this bug frequently, because I generally edit in Page but also switch to List for batch work. It would be a sensible solution, as Riccard suggests, to switch back to the Normal clipboard when in Page module.
Updated by Richard Haeser over 3 years ago
I can confirm. This is also still the case in current master (v11.1.0-dev)
Updated by Gerrit Code Review over 2 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/+/70963
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70964
Updated by Oliver Bartsch over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 287feb00c3b058ed82f582047a23beb949fcd22d.