Skip to content

Commit 1bc6ee5

Browse files
committed
Fallback selectable option value to "title" if value is not provided.
1 parent 80e5d7a commit 1bc6ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Enum/SelectableOptionEnumType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getValues()
1818
$options = [];
1919
foreach ($this->field->type->getOptions($this->field) as $option) {
2020
$options[] = [
21-
'value' => $option->value,
21+
'value' => $option->value || $option->title,
2222
'name' => $option->title,
2323
];
2424
}

0 commit comments

Comments
 (0)