Skip to content

Commit

Permalink
fix: extracting label option from object
Browse files Browse the repository at this point in the history
elistone committed Jan 3, 2025
1 parent 6c83711 commit 8fb92b2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -99,6 +99,9 @@ public function resolve(string $id, ?string $args, FieldContext $context): array
foreach (Element::children($form) as $key) {
if (isset($form[$key]['#options'])) {
foreach ($form[$key]['#options'] as $value => $label) {
if (is_object($label) && isset($label->option)) {
$label = $label->option;
}
$filters[$key][] = [
'value' => (string)$value,
'label' => (string)$label,

0 comments on commit 8fb92b2

Please sign in to comment.