From fb94a47df1ea164603d9c7e6bfbb33f869c916e4 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 4 Aug 2022 16:25:44 -0600 Subject: [PATCH] Et2LinkSearch: Avoid error if title couldn't be found --- api/js/etemplate/Et2Link/Et2LinkSearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkSearch.ts b/api/js/etemplate/Et2Link/Et2LinkSearch.ts index 0dcdaade28..aabec23463 100644 --- a/api/js/etemplate/Et2Link/Et2LinkSearch.ts +++ b/api/js/etemplate/Et2Link/Et2LinkSearch.ts @@ -114,7 +114,7 @@ export class Et2LinkSearch extends Et2Select this.select_options = Object.assign([option], this.__select_options); this.egw()?.link_title(this.app, option.value, true).then(title => { - option.label = title; + option.label = title || Et2Link.MISSING_TITLE; option.class = ""; // It's probably already been rendered, find the item let item = this.getItems().find(i => i.value === option.value);