mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
make checkbox fields work with cross referenced string
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user