diff --git a/api/js/jsapi/egw_open.js b/api/js/jsapi/egw_open.js index b7475ca7f3..a04ce43663 100644 --- a/api/js/jsapi/egw_open.js +++ b/api/js/jsapi/egw_open.js @@ -224,7 +224,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) url = this.link(url, params); } 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, { id: params[app_registry['view_id']] + '-' + this.appName, icon: params['icon'],