Merge pull request #5787 from Upgreydd/convert_text_to_boolean_for_custom_schema_in_select
Allow to use select for boolean field type
This commit is contained in:
commit
71fdb69cde
|
@ -40,6 +40,15 @@ export const getOptions = (
|
|||
|
||||
// Extract custom options
|
||||
if (optionsSource === "custom" && customOptions) {
|
||||
customOptions.forEach(option => {
|
||||
if (typeof option.value === "string") {
|
||||
if (option.value.toLowerCase() === "true") {
|
||||
option.value = true
|
||||
} else if (option.value.toLowerCase() === "false") {
|
||||
option.value = false
|
||||
}
|
||||
}
|
||||
})
|
||||
return customOptions
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue