From 69ebe76299064f34b8ddaf2a4a24af42adba2396 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Tue, 16 Jan 2024 12:16:29 +0100 Subject: [PATCH] Update rex_yform_choice_list.php (#1434) --- lib/yform/value/Choice/rex_yform_choice_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yform/value/Choice/rex_yform_choice_list.php b/lib/yform/value/Choice/rex_yform_choice_list.php index 1a809d244..02760e7b9 100644 --- a/lib/yform/value/Choice/rex_yform_choice_list.php +++ b/lib/yform/value/Choice/rex_yform_choice_list.php @@ -53,7 +53,7 @@ public function createListFromSqlArray($choices) $label = rex_i18n::translate((string) $label, false); // Im Template werden im `select` optgroup erstellt - if ($this->options['group_by'] && isset($choice[$this->options['group_by']])) { + if (isset($this->options['group_by']) && $this->options['group_by'] && isset($choice[$this->options['group_by']])) { $this->choices[$choice[$this->options['group_by']]][trim($label)] = trim($value); $this->choicesByValues[trim($value)] = trim($label); continue;