From b4263a3e428abc541c59674c01d6682f7cfe1b84 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 9 Apr 2024 11:35:03 +0100 Subject: [PATCH] Issue #3251895 by Shabbir, rodrigoaguilera, ckrina: claro_form_views_ui_config_item_form_alter() assumes a suffix when there is a prefix leading to: Undefined index #suffix in $form['options']['value'] --- core/themes/claro/claro.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/themes/claro/claro.theme b/core/themes/claro/claro.theme index 22444e1f0064..e46b46063707 100644 --- a/core/themes/claro/claro.theme +++ b/core/themes/claro/claro.theme @@ -1705,7 +1705,7 @@ function claro_form_views_ui_config_item_form_alter(array &$form, FormStateInter foreach (['views-left-30', 'views-left-40'] as $left_class) { if (str_contains($form['options']['operator']['#prefix'], $left_class)) { $form['options']['operator']['#prefix'] = '
' . str_replace($left_class, 'views-group-box--operator', $form['options']['operator']['#prefix']); - $form['options']['value']['#suffix'] = $form['options']['value']['#suffix'] . '
'; + $form['options']['value']['#suffix'] = ($form['options']['value']['#suffix'] ?? '') . ''; } } }