mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
Show organisation name on CRM view if exists
This commit is contained in:
parent
ac64ae51aa
commit
b26bcf2978
@ -206,7 +206,8 @@ var AddressbookApp = /** @class */ (function (_super) {
|
||||
extras.crm_list = _action.id.replace('view-', '');
|
||||
}
|
||||
this.egw.openTab(id, 'addressbook', 'view', extras, {
|
||||
displayName: data.n_fn + " (" + egw.lang(extras.crm_list) + ")",
|
||||
displayName: (_action.id.match(/\-organisation/) && data.org_name != "") ? data.org_name
|
||||
: data.data.n_fn + " (" + egw.lang(extras.crm_list) + ")",
|
||||
icon: data.photo,
|
||||
refreshCallback: this.view_refresh,
|
||||
id: id + '-' + extras.crm_list,
|
||||
|
@ -229,7 +229,8 @@ class AddressbookApp extends EgwApp
|
||||
}
|
||||
|
||||
this.egw.openTab(id, 'addressbook', 'view', extras, {
|
||||
displayName: data.n_fn+" ("+egw.lang(extras.crm_list)+")",
|
||||
displayName: (_action.id.match(/\-organisation/) && data.org_name != "") ? data.org_name
|
||||
: data.data.n_fn+" ("+egw.lang(extras.crm_list)+")",
|
||||
icon: data.photo,
|
||||
refreshCallback: this.view_refresh,
|
||||
id: id+'-'+extras.crm_list,
|
||||
|
Loading…
Reference in New Issue
Block a user