From c7c480694deb1cfafa8596322ce6320f356f77a7 Mon Sep 17 00:00:00 2001
From: Nikita Hovratov <nikita.h@live.de>
Date: Thu, 1 Sep 2022 11:11:04 +0200
Subject: [PATCH] [BUGFIX] Add missing outer-container classes for foreign
 selector types
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

With patch #97786 a bug was fixed, to only toggle inline controls in
their own scope. For this a new helper class was introduced and added
for vanilla inline controls. However, there are two other special
inline control types for record selectors. Most commonly known from the
FileSelector for FAL. The helper class is now added there as well.

Resolves: #98233
Related: #97786
Releases: main, 11.5
Change-Id: Ifb2eb4205ecec50540a70943163c639f04de5ea1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75596
Tested-by: core-ci <typo3@b13.com>
Tested-by: Henrik Ziegenhain <henrik@ziegenhain.me>
Tested-by: Jörg Bösche <typo3@joergboesche.de>
Tested-by: Harry Glatz <glatz@analog.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Henrik Ziegenhain <henrik@ziegenhain.me>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
---
 .../backend/Classes/Form/Container/InlineControlContainer.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php b/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
index 9545f6c45f0b..0b240fb5154d 100644
--- a/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
+++ b/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
@@ -603,7 +603,7 @@ class InlineControlContainer extends AbstractContainer
         if (!empty($allowedList)) {
             $item .= '<div class="help-block">' . $allowedLabel . '<br>' . $allowedList . '</div>';
         }
-        $item = '<div class="form-group t3js-formengine-validation-marker">' . $item . '</div>';
+        $item = '<div class="form-group t3js-formengine-validation-marker t3js-inline-controls-top-outer-container">' . $item . '</div>';
         return $item;
     }
 
@@ -665,7 +665,7 @@ class InlineControlContainer extends AbstractContainer
         }
 
         // Wrap the selector and add a spacer to the bottom
-        $item = '<div class="input-group form-group t3js-formengine-validation-marker">' . $item . '</div>';
+        $item = '<div class="input-group form-group t3js-formengine-validation-marker t3js-inline-controls-top-outer-container">' . $item . '</div>';
         return $item;
     }
 
-- 
GitLab