mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Use localization strings for dropdown-like field options. (#910)
Documented by https://github.com/wintercms/docs/pull/133
This commit is contained in:
parent
71479dd51d
commit
a32b6b7cae
@ -1343,6 +1343,11 @@ class Form extends WidgetBase
|
||||
]));
|
||||
}
|
||||
return $result;
|
||||
} else {
|
||||
// Handle localization keys that return arrays
|
||||
if (is_array($options = Lang::get($fieldOptions))) {
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user