diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js index c936af9e377967a380fc0760e5c429bdcea5c48f..4f2fe3995959b0973533ea65617e6ba7eaf8102a 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js @@ -888,7 +888,8 @@ var FormUtil = new function() { var vocabulary = propertyType.vocabulary; if(vocabulary) { for(var tIdx = 0; tIdx < vocabulary.terms.length; tIdx++) { - if(vocabulary.terms[tIdx].code === termCode) { + if(vocabulary.terms[tIdx].code === termCode && + vocabulary.terms[tIdx].label) { return vocabulary.terms[tIdx].label; } }