From 88cf19b8fb6750fb85a48c5576636bc43fb825a0 Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Tue, 10 Sep 2024 12:11:25 +0200 Subject: [PATCH] #550 Changed label format in project autocomplete --- .../main/resources/META-INF/resources/js/HISinOneProjects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/resources/META-INF/resources/js/HISinOneProjects.js b/common/src/main/resources/META-INF/resources/js/HISinOneProjects.js index e2257df5..276e00ad 100644 --- a/common/src/main/resources/META-INF/resources/js/HISinOneProjects.js +++ b/common/src/main/resources/META-INF/resources/js/HISinOneProjects.js @@ -11,7 +11,7 @@ const HisinOneProjects = { let item = {}; item.id = project.id; - item.label = project.shorttext + ": " + (label.length > HisinOneProjects.maxLength ? label.substring(0, HisinOneProjects.maxLength).trim() + "…" : label) + " [" + project.id + "]"; + item.label = (label.length > HisinOneProjects.maxLength ? label.substring(0, HisinOneProjects.maxLength).trim() + "…" : label) + " [" + project.shorttext + "]"; item.defaultText = project.defaulttext; item.shortText = project.shorttext; projects.push(item);