Commit de973206 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[BUGFIX] Fix TypeError in InlineControlContainer

In case a TCA column with type=inline does not
contain "container controls", e.g. the `languages`
column in a site configuration, a TypeError was
triggered by the toggleContainerControls() method.

This is fixed by proper type checking.

Resolves: #93690
Releases: master, 10.4
Change-Id: I6dc0a874adddb6e9c56565087b090072656b54eb

Tested-by: default avatarTYPO3com <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
parent dc540117
......@@ -794,6 +794,9 @@ class InlineControlContainer {
private toggleContainerControls(visible: boolean): void {
const controlContainer = this.container.querySelector(Selectors.controlContainer);
if (controlContainer === null) {
const controlContainerButtons = controlContainer.querySelectorAll('button, a');
controlContainerButtons.forEach((button: HTMLElement): void => { = visible ? null : 'none';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment