Bug #100833
closedTranslate domain object in list view
100%
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.
Updated by Sebastian Fischer over 1 year 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.
Updated by Gerrit Code Review over 1 year 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
Updated by Gerrit Code Review over 1 year 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
Updated by Benni Mack over 1 year ago
- Target version changed from 12 LTS to Candidate for patchlevel
Updated by Gerrit Code Review over 1 year 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
Updated by Gerrit Code Review over 1 year 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
Updated by Gerrit Code Review over 1 year 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
Updated by Gerrit Code Review over 1 year 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
Updated by Georg Ringer over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d343e98edc62868b3719482f6fb6688aa2325be9.
Updated by Andreas Kienast over 1 year ago
- Has duplicate Task #101088: Update form-engine.js initializeLocalizationStateSelector added