Skip to content

Commit 5095a73

Browse files
committed
Allow Options-model to be either string or object
1 parent 8174817 commit 5095a73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Form/Field/FieldType/Select.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public function getOptions(): array
3131
return [];
3232
}
3333

34-
$options = $this->objectManager->get($options);
34+
if (is_string($options)) {
35+
$options = $this->objectManager->get($options);
36+
}
3537

3638
if (!$options instanceof OptionSourceInterface) {
3739
return [];

0 commit comments

Comments
 (0)