From a450164f2dc5dd713e8dc7121c789179d626c28e Mon Sep 17 00:00:00 2001 From: Patrick van Efferen Date: Mon, 9 Dec 2024 11:59:11 +0100 Subject: [PATCH] Issue #1455: Allowing optional name attribute to be empty --- oe_theme.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oe_theme.theme b/oe_theme.theme index 65cf58993..721704595 100644 --- a/oe_theme.theme +++ b/oe_theme.theme @@ -1248,7 +1248,7 @@ function _oe_theme_preprocess_search_input_text(array $element): array { // Process element attributes into an ECL input array. $ecl_array = [ 'id' => $element['#attributes']['id'], - 'name' => $element['#attributes']['name'], + 'name' => $element['#attributes']['name'] ?? '', 'disabled' => $element['#attributes']['disabled'] ?? FALSE, 'type' => $element['#attributes']['type'], 'class' => $element['#attributes']['class'],