Take crm_list preference into account for dblclick action on contact

This commit is contained in:
Hadi Nategh 2020-11-02 15:48:00 +01:00
parent 082d7fddad
commit 03adbcb97a
2 changed files with 3 additions and 1 deletions

View File

@ -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) + ")",

View File

@ -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)+")",