Issue Bug Closed

#100896Console error triggered after click on edit button for a translated page

Julian Mair 05/18/23, 07:26 updated 01/31/25, 12:05

Description

Upon clicking the edit button on a translated page, the UI overlay remains while the web console generates an error.

Error message:

VM5260 form-engine.js:13 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'disabled')
    at VM5260 form-engine.js:13:12668
    at NodeList.forEach (<anonymous>)
    at Object.initializeLocalizationStateSelector (VM5260 form-engine.js:13:12438)
    at Object.reinitialize (VM5260 form-engine.js:13:12217)
    at VM5260 form-engine.js:13:21565

*Possible solution:*
On the line in file: https://github.com/TYPO3/typo3/blob/v12.4.1/Build/Sources/TypeScript/backend/form-engine.ts#L743
Wouldn’t it be more appropriate for the condition to be the following, rather than undefined?

if (input === null) {
System:
  • Typo3 v12.4.1
  • PHP 8.1

Reviews 4

Files 1

History 514

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2023-07-05T20:55:09+00:00" > 07/05/23, 20:55 </span>

    Applied in changeset commit:d343e98edc62868b3719482f6fb6688aa2325be9.

  2. Gerrit Code Review pushed patch set 5 for main to change 79094 status Closed Under Review <span data-processor="relativetime" data-value="2024-10-18T14:07:58+00:00" > 10/18/24, 14:07 </span>

  3. Georg Ringer commented and changed status Under Review Closed <span data-processor="relativetime" data-value="2025-01-31T12:05:40+00:00" > 01/31/25, 12:05 </span>

    solved with #100833