Upgrade to 3.7.0
This commit is contained in:
3
kirby/src/Form/Options.php
Normal file → Executable file
3
kirby/src/Form/Options.php
Normal file → Executable file
@@ -144,6 +144,9 @@ class Options
|
||||
];
|
||||
}
|
||||
|
||||
// fallback for the text
|
||||
$option['text'] ??= $option['value'];
|
||||
|
||||
// translate the option text
|
||||
if (is_array($option['text']) === true) {
|
||||
$option['text'] = I18n::translate($option['text'], $option['text']);
|
||||
|
||||
Reference in New Issue
Block a user