Issue Bug New Orphaned

#98592DataHandler: copy l10n-exclude fields even if excluded for current user

Anonymous 10/12/22, 16:14 updated 10/12/22, 16:17

Description

prose

clipboard-202210121813-rbtgu.png

cite: https://typo3.slack.com/archives/C025BQLFA/p1629827725005900

step by step

Pre-requisites: TYPO3 installation with at least one additional language. e.g. default + EN

Then u need:

  • backend user with no admin rights. I name it ‘editor’.
  • don’t give this user rights to see `is_siteroot`

clipboard-202210121801-p56zx.png

Now:

  • with an admin account: create a new page, name it “Atemberaubende Weltkugel” (uid:1), make it a root-page (check `is_siteroot`)

Then:

  • log in as ‘editor’
  • visit page uid:1 in page module
  • click “translate page”
  • save page

what now happens

The translated page has `is_siteroot` set to `0` (it is the ext-tables.sql default value – see https://github.com/TYPO3/typo3/blob/v12.0.0/typo3/sysext/core/ext_tables.sql#L75).

what I expect

The translated page `is_siteroot` aligned with default-language. Because this reason: “‘l10n_mode’ => ‘exclude’” (https://github.com/TYPO3/typo3/blob/v12.0.0/typo3/sysext/core/Configuration/TCA/pages.php#L718)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] DataHandler: copy l10n-exclude fields even if excluded for current user Resolves: #98592 Releases: main