Project

General

Profile

Actions

Bug #100833

closed

Translate domain object in list view

Added by Axel Beckert 12 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Start date:
2023-05-08
Due date:
% Done:

100%

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

Description

When translating a news item within the list module the div layer with the id t3js-ui-block is not removed after loading the item.
Steps to reproduce:

- Open the news item with the base language, which is in my case DE, translate it via language select, or add the it via list module while click on the language flag.
- Edit Forms opens but the overlay stays there and is not hidden after loading the content.

Reason:

Within the form-engine.js the function initializeLocalizationStateSelector is called.

        initializeLocalizationStateSelector: function () {
            document.querySelectorAll(".t3js-l10n-state-container").forEach((e => {
                const t = e.closest(".t3js-formengine-field-item")?.querySelector("[data-formengine-input-name]");
                if (void 0 === t) return;
                const n = e.querySelector('input[type="radio"]:checked').value;
                "parent" !== n && "source" !== n || (t.disabled = !0)
            }))
        },

When changing the line

if (void 0 === t) return;

to

if (void 0 === t || null === t) return;

The error is fixed. So far, however, the error has only appeared in the news.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Task #101088: Update form-engine.js initializeLocalizationStateSelectorClosed2023-06-15

Actions
Actions #1

Updated by Sebastian Fischer 12 months ago

I can confirm the same error in my system when trying to modify a folder translation.

And the code change fixed it for me too.

Actions #2

Updated by Gerrit Code Review 12 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79007

Actions #3

Updated by Gerrit Code Review 12 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79007

Actions #4

Updated by Benni Mack 11 months ago

  • Target version changed from 12 LTS to Candidate for patchlevel
Actions #5

Updated by Gerrit Code Review 10 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79007

Actions #6

Updated by Gerrit Code Review 10 months ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79007

Actions #7

Updated by Gerrit Code Review 10 months ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79007

Actions #8

Updated by Gerrit Code Review 10 months ago

Patch set 1 for branch 12.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/+/79774

Actions #9

Updated by Georg Ringer 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Andreas Kienast 10 months ago

  • Has duplicate Task #101088: Update form-engine.js initializeLocalizationStateSelector added
Actions

Also available in: Atom PDF