mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Addressbook: Fix double-click preference opened organisation view with a different title than when it was opened with context menu
This commit is contained in:
parent
727db2aab5
commit
176cba3afb
@ -294,7 +294,7 @@ class AddressbookApp extends EgwApp
|
|||||||
extras.crm_list = <string>egw.preference('crm_list', 'addressbook');
|
extras.crm_list = <string>egw.preference('crm_list', 'addressbook');
|
||||||
}
|
}
|
||||||
const title_app = extras.crm_list == "tracker" ? " (" + egw.lang(extras.crm_list) + ")" : "";
|
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.org_name
|
||||||
: data.n_fn + title_app;
|
: data.n_fn + title_app;
|
||||||
extras.icon = data.photo;
|
extras.icon = data.photo;
|
||||||
|
Loading…
Reference in New Issue
Block a user