diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 048c53ba6a..cc13a2de55 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -205,6 +205,8 @@ var AddressbookApp = /** @class */ (function (_super) { if (_action.id != 'view') { extras.crm_list = _action.id.replace('view-', ''); } + if (!extras.crm_list) + extras.crm_list = egw.preference('crm_list', 'addressbook'); this.egw.openTab(id, 'addressbook', 'view', extras, { displayName: (_action.id.match(/\-organisation/) && data.org_name != "") ? data.org_name : data.n_fn + " (" + egw.lang(extras.crm_list) + ")", diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index fb641006d3..9fcaed8a75 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -227,7 +227,7 @@ class AddressbookApp extends EgwApp { extras.crm_list = _action.id.replace('view-',''); } - + if (!extras.crm_list) extras.crm_list = egw.preference('crm_list', 'addressbook'); this.egw.openTab(id, 'addressbook', 'view', extras, { displayName: (_action.id.match(/\-organisation/) && data.org_name != "") ? data.org_name : data.n_fn+" ("+egw.lang(extras.crm_list)+")",