From 1a0a4f71af6f403c9ad630ed76a96db03a470af3 Mon Sep 17 00:00:00 2001
From: pkupczyk <piotr.kupczyk@id.ethz.ch>
Date: Fri, 9 Jun 2023 13:35:45 +0200
Subject: [PATCH] SSDM-13720 : when an entity is moved from one entity to
 another, navigation menu is not updated - do not show an unnecessary
 "undefined" text in the move entity view

---
 .../eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js     | 2 +-
 1 file changed, 1 insertion(+), 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 f21fd5ff39d..544867a83a5 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
@@ -1028,7 +1028,7 @@ var FormUtil = new function() {
 
 		var $container = $('<div>', {'class' : 'checkbox'}).append($('<label>').append($('<input>', attr)));
 
-        $container.append($("<span>", { class: "glyphicon glyphicon-info-sign" })).append(" " + alt);
+        $container.append($("<span>", { class: "glyphicon glyphicon-info-sign" })).append(alt ? " " + alt : "");
 
 		if (isRequired) {
             $container.attr('required', '');
-- 
GitLab