Verified Commit 0106f0d3 authored by Dave Long's avatar Dave Long
Browse files

fix: SA-CORE-2026-014

By: mcdruid
By: ogalland-tob
By: catch
By: larowlan
By: longwave
By: xjm
By: akalata
By: bramdriesen
By: greggles
By: hestenet
By: poker10
By: prudloff
(cherry picked from commit ef786b7a)
parent 02e77a7b
Loading
Loading
Loading
Loading
+4 −1
Changes for core/modules/field_ui/src/Element/FieldUiTable.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -70,7 +70,10 @@ public static function tablePreRender($elements) {
          unset($list[$name]);

          // Determine the region for the row.
          $region_name = call_user_func_array($row['#region_callback'], [&$row]);
          $region_name = $row['region']['#value'] ?? '';
          if (!isset($regions[$region_name])) {
            $region_name = isset($regions['hidden']) ? 'hidden' : array_key_first($regions);
          }

          // Add the element in the tree.
          // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable