make checkbox fields work with cross referenced string

This commit is contained in:
Martin Raifer
2022-11-01 17:58:36 +01:00
parent 56c05b1d1a
commit 34a414ee18

View File

@@ -32,8 +32,12 @@ export function uiFieldCheck(field, context) {
var _value;
var stringsField = field.resolveReference('stringsCrossReference');
if (!options && stringsField.options) {
options = stringsField.options;
}
if (options) {
var stringsField = field.resolveReference('stringsCrossReference');
for (var i in options) {
var v = options[i];
values.push(v === 'undefined' ? undefined : v);