From 176cba3afba0c76b9c9b56c2d178c9e6968d9315 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 24 Oct 2022 11:28:28 -0600 Subject: [PATCH] Addressbook: Fix double-click preference opened organisation view with a different title than when it was opened with context menu --- addressbook/js/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index 366afd286e..dd000c93d6 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -294,7 +294,7 @@ class AddressbookApp extends EgwApp extras.crm_list = egw.preference('crm_list', 'addressbook'); } const title_app = extras.crm_list == "tracker" ? " (" + egw.lang(extras.crm_list) + ")" : ""; - extras.title = (_action.id.match(/\-organisation/) && data.org_name != "") + extras.title = ((_action.id.match(/\-organisation/) || extras.crm_list.endsWith("-organisation")) && data.org_name != "") ? data.org_name : data.n_fn + title_app; extras.icon = data.photo;