From f2f4c2d9c7e65c1a92b9db97830e65b16d69156c Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 25 Jan 2019 09:43:07 -0500 Subject: [PATCH] Make optional multiCombo fields appear if a value exists (closes #5764) --- modules/ui/field.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ui/field.js b/modules/ui/field.js index 856b9e41a..822fd5818 100644 --- a/modules/ui/field.js +++ b/modules/ui/field.js @@ -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; }); }