Project

General

Profile

Actions

Bug #98256

open

l10n_mode: exclude not properly working in workspaces

Added by Armin Vieweg almost 2 years ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2022-09-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When you are in e.g. in a draft workspace and you change a property of a record which has l10n_mode set to exclude, TYPO3 does not set the value of the translations, properly. Those values remain untouched. You can test it with the "layout" field of pages.

When updating in LIVE workspace, all translation get the new layout value set.
When in e.g. draft workspace, only the default language record gets changed.

When publishing to LIVE, those wrong values remain in place. You need to update the value in LIVE workspace, to get proper results.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Task #80640: Enhance workspace handling of language synchronizationUnder ReviewOliver Hader2017-04-02

Actions
Actions #1

Updated by Oliver Hader almost 2 years ago

  • Related to Task #80640: Enhance workspace handling of language synchronization added
Actions #2

Updated by Armin Vieweg almost 2 years ago

I also discovered a related issue with Extbase:

I created an Extbase Repo pointing to pages table. In one findBy... method I added a constraint for the Doktype of page.

- But instead of checking the Doktype of records in current workspace, it uses the value from the published page in LIVE workspace.
- When the page is NOT published to LIVE, it works as expected
- It seems only to affect properties, with l10n_mode: exclude set (like "layout" or "doktype")

Actions #3

Updated by Riccardo De Contardi about 1 month ago

I tried the following test on TYPO3 13.2.0-dev (latest main)

Prerequisites

  • TYPO3 with two languages: Italian (Default, ID=0) and English (ID=1)
  • a "Draft" Workspace
  • A simple TypoScript template like:
page = PAGE
page {
  5 = TEXT
  5 {
      data = field : title
      wrap = <h1>|</h1>
    }

  6 = TEXT
  6.data = field:layout
  6.wrap = <h2>Layout: | </h2>
}

Test procedure

1) Create a page "Test" in Italian (default language ID=0)
2) Translate the page in English and rename it "Test ENG"
3) Edit the italian version of the page and set the Frontend Layout [layout] field: "Layout 1"
4) Save and preview the page

Result 1 (preview of the "LIVE" workspace)

  • the Italian page Test has Layout:1 (OK)
  • the English page Test ENG has Layout:1 (OK)

5) Switch to "Draft" workspace
6) Edit the italian version of the page and set the Frontend Layout [layout] field: "Layout 3"
7) Save and preview the page

Result 2 (preview of the "Draft" workspace)

  • the Italian page Test has Layout:3 (OK)
  • the English page Test ENG has Layout:3 (OK)

Is a different test necessary?

Actions

Also available in: Atom PDF