From ca4f094e64453ad1af316b54751bd9fec7f3b27a Mon Sep 17 00:00:00 2001 From: juanf <juanf@ethz.ch> Date: Fri, 3 Mar 2023 11:29:46 +0100 Subject: [PATCH] SSDM-13448: Show vocabulary term codes when labels are missing --- .../eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c936af9e377..4f2fe399595 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; } } -- GitLab