Make optional multiCombo fields appear if a value exists (closes #5764)

This commit is contained in:
Quincy Morgan
2019-01-25 09:43:07 -05:00
parent 82274a2c3c
commit f2f4c2d9c7

View File

@@ -69,6 +69,14 @@ export function uiField(context, presetField, entity, options) {
function isPresent() {
return _some(field.keys, function(key) {
if (field.type === 'multiCombo') {
for (var tagKey in _tags) {
if (tagKey.indexOf(key) === 0) {
return true;
}
}
return false;
}
return _tags[key] !== undefined;
});
}