Bug #86966

pages_language_overlay do not get the appendix from prependAtCopy on copy of a page

Added by Manuel Selbach 12 months ago. Updated 7 months ago.

Status:
Under Review
Priority:
Should have
Category:
-
Start date:
2018-11-21
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If a page is translated those records are not respected regarding the appendix from the "prependAtCopy" on the "label field" like it is done for pages during the copy process.

In combination of using e.g. realurl this could lead to serious problems, as it will create the same path for the page as for the original page and thus the original page doesn't get shown as there is a conflict regarding the path.

Current behavior

1. copy a page with some translations on
2. paste it via the page tree

Result:
1. page (default language, table "pages"): title gets the suffix that is written in "prependAtCopy"
2. translated pages (table "pages_language_overlay"): title is the same as on the original page

Expected result

Translated pages should also get the "suffix" written in $GLOBALS['TCA']['pages_language_overlay']['ctrl']['prependAtCopy'] during the copy process.

History

#1 Updated by Gerrit Code Review 12 months ago

  • Status changed from New to Under Review

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58932

#2 Updated by Gerrit Code Review 12 months ago

Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58932

#3 Updated by Gerrit Code Review 12 months ago

Patch set 3 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58932

#4 Updated by Riccardo De Contardi 7 months ago

This issue is solved for version 9.5.5 and 10.0.0-dev (latest master) as far as I can see;

This is my test

1) TYPO3 with two languages (italian, english)
2) create a page and translate it
3) on pagetree, right click > copy
4) on pagetree, right click > paste after

Results:

  • both the page and its translation were copied
  • the copied page has the string (copy 1) appended to it.
  • the copied translation has the string (copy 1) appended to it.

#5 Updated by Benni Mack 7 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF