Issue Bug Closed

#93744Copying pages with translations to sites without translations should not copy translations

Robert Vock 03/15/21, 15:37 updated 03/31/26, 09:00

Description

When a page is copied, all translations of that page are always copied.

If a page is copied from Site A with Languages en and de to a Site B with only language en, the german translation get’s copied as well.
The copied version is not visible anywhere. It’s not visible in the list-module, because the list module of Site B only lists records with language en. Before TYPO3 v9 even records with languages which were not available for a page tree where shown in the list module.

Now those records are only visible in PhpMyAdmin.

This leads to a lot of data garbage. I’ve got a TYPO3 installation where one site has ~50 languages and another site only has 6 languages. If my editors copy a page of site A, this results in 44 garbage page records. The editors don’t even see those pages and cannot delete them after copying.

Reviews 2

Files 2

History 1124

  1. Riccardo De Contardi commented and changed attached Cattura1.png attached Cattura2.png <span data-processor="relativetime" data-value="2024-06-08T22:34:39+00:00" > 06/08/24, 22:34 </span>

    I report here the results of a test performed on TYPO3 13.2.0-dev (latest main)

    Prerequisites

    TYPO3 installation with TWO sites configuration

    - Home (ID=1), which has three languages configured: Italian (default, ID=0), English (ID=1), French (ID=2)
    - Site Two (ID=348) which has only italian as configured language

    The test

    1. under Home, create a new page Page-93744 (ID=993 in my case) and translate it into english (page Page-93744-en, ID=994) and french (page Page-93744-fr, ID=995)
    Clicking on the home page > list view, this is the result:

    Cattura1.png

    2. with the context menu of pageTree, copy the page
    3. Click on the second home page “Site Two” and select “Paste Into”

    Results

    1. All the pages, including the translations are copied, so you’ll have three more pages under “Site Two” with ID=996,997,998
    2. on List View, the “spurious” translations are NOT visible if you click on the page itself, but the’re visible if you use the list view of their parent page:

    Cattura2.png

  2. Eric Harrer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-02-09T18:30:09+00:00" > 02/09/26, 18:30 </span>

    Applied in changeset commit:c901be21e2048f3b5f4d33b75f84dbb02bcd4f93.

  3. Gerrit Code Review pushed patch set 3 for 13.4 to change 92757 status Resolved Under Review <span data-processor="relativetime" data-value="2026-02-10T09:50:20+00:00" > 02/10/26, 09:50 </span>

  4. Eric Harrer commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-02-10T10:05:08+00:00" > 02/10/26, 10:05 </span>

    Applied in changeset commit:6a8353cef171e4228c3b981d357795a38ef3962b.