mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
Addressbook: Don't show "(Infolog)" in CRM tab when viewing a single contact
This commit is contained in:
parent
bfcb67982d
commit
7b0a6911d3
@ -298,9 +298,14 @@ class AddressbookApp extends EgwApp
|
||||
{
|
||||
extras.crm_list = _action.id.replace('view-', '');
|
||||
}
|
||||
if (!extras.crm_list) extras.crm_list = <string>egw.preference('crm_list', 'addressbook');
|
||||
extras.title = (_action.id.match(/\-organisation/) && data.org_name != "") ? data.org_name
|
||||
: data.n_fn+" ("+egw.lang(extras.crm_list)+")";
|
||||
if(!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;
|
||||
return this.openCRMview(extras);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user