mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-04-12 18:18:19 +02:00
Make sure the params exists before addressing it
This commit is contained in:
parent
e34e18757e
commit
f064ff8242
@ -224,7 +224,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
|
|||||||
url = this.link(url, params);
|
url = this.link(url, params);
|
||||||
}
|
}
|
||||||
if (target == '_tab') return {url: url};
|
if (target == '_tab') return {url: url};
|
||||||
if (type == 'view' && params.target == 'tab') {
|
if (type == 'view' && params && params.target == 'tab') {
|
||||||
return this.openTab(params[app_registry['view_id']], app, type, params, {
|
return this.openTab(params[app_registry['view_id']], app, type, params, {
|
||||||
id: params[app_registry['view_id']] + '-' + this.appName,
|
id: params[app_registry['view_id']] + '-' + this.appName,
|
||||||
icon: params['icon'],
|
icon: params['icon'],
|
||||||
|
Loading…
Reference in New Issue
Block a user