Skip to content

Commit

Permalink
Update rex_yform_choice_list.php (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w authored Jan 16, 2024
1 parent 5bb91d9 commit 69ebe76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yform/value/Choice/rex_yform_choice_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69ebe76

Please sign in to comment.