Issue Bug Closed

#102270Language Selector does not work in edit popup

Hannes Lau 10/27/23, 09:49 updated 12/02/25, 14:37

Description

In the TYPO3 Backend, create a TCA “group” element of type “db” with the edit popup enabled. Use the edit popup to edit a translatable record. Use the language menu in the edit popup to change from the default language into a translation language.

Expected: The edit popup loads the form of the translated record
Actual: A javascript error appears on the JS console

ContentContainer.js?bust=1695828076:22 Uncaught TypeError: Cannot read properties of undefined (reading 'contentWindow')
    at a.get (ContentContainer.js?bust=1695828076:22:74)
    at Object.handleFormChildNavigateAction (GlobalEventHandler.js?bust=1695828076:13:1703)
    at Object.handleChangeEvent (GlobalEventHandler.js?bust=1695828076:13:777)
    at HTMLDocument.<anonymous> (RegularEvent.js?bust=1695828076:13:364)

Reviews 2

History 612

  1. Florian E. commented and changed TYPO3 Version 11 13 <span data-processor="relativetime" data-value="2025-01-23T12:32:39+00:00" > 01/23/25, 12:32 </span>

    I tested Typo3 11, 12 and 13. Works in non of these.
    This is related to https://git.typo3.org/typo3/typo3/-/blob/main/typo3/sysext/backend/Resources/Public/JavaScript/viewport/content-container.js

    Looks like document.querySelector(“.t3js-scaffold-content-navigation-iframe”); is not found in

        get() {
            return document.querySelector(ScaffoldIdentifierEnum.contentModuleIframe).contentWindow
        }
  2. Adam Koppe commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-06-23T08:45:11+00:00" > 06/23/25, 08:45 </span>

    Applied in changeset commit:f1cc435c88908b2c3620e91df2084fd26d9c3c10.