Addressbook: Don't show "(Infolog)" in CRM tab when viewing a single contact

This commit is contained in:
nathan 2022-10-19 09:36:42 -06:00
parent bfcb67982d
commit 7b0a6911d3

View File

@ -298,9 +298,14 @@ class AddressbookApp extends EgwApp
{ {
extras.crm_list = _action.id.replace('view-', ''); extras.crm_list = _action.id.replace('view-', '');
} }
if (!extras.crm_list) extras.crm_list = <string>egw.preference('crm_list', 'addressbook'); if(!extras.crm_list)
extras.title = (_action.id.match(/\-organisation/) && data.org_name != "") ? data.org_name {
: data.n_fn+" ("+egw.lang(extras.crm_list)+")"; extras.crm_list = <string>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 != "")
? data.org_name
: data.n_fn + title_app;
extras.icon = data.photo; extras.icon = data.photo;
return this.openCRMview(extras); return this.openCRMview(extras);
} }