mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Avoid undefined error when links is not provided
This commit is contained in:
parent
9ad4dc5f98
commit
2bc3ad43c0
@ -214,12 +214,17 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
refresh: function(_msg, _app, _id, _type, _targetapp, _replace, _with, _msg_type, _links)
|
||||
{
|
||||
// Log for debugging purposes
|
||||
this.debug("log", "egw_refresh(%s, %s, %s, %o, %s, %s)", _msg, _app, _id, _type, _targetapp, _replace, _with, _msg_type);
|
||||
this.debug("log", "egw_refresh(%s, %s, %s, %o, %s, %s)", _msg, _app, _id, _type, _targetapp, _replace, _with, _msg_type, _links);
|
||||
|
||||
var win = typeof _targetapp != 'undefined' ? _wnd.egw_appWindow(_targetapp) : _wnd;
|
||||
|
||||
this.message(_msg, _msg_type);
|
||||
|
||||
if(typeof _links == "undefined")
|
||||
{
|
||||
_links = [];
|
||||
}
|
||||
|
||||
// notify app observers: if observer for _app itself returns false, no regular refresh will take place
|
||||
// app's own observer can replace current app_refresh functionality
|
||||
var no_regular_refresh = false;
|
||||
|
Loading…
Reference in New Issue
Block a user