Avoid undefined error when links is not provided

This commit is contained in:
Nathan Gray 2014-06-10 15:27:11 +00:00
parent 9ad4dc5f98
commit 2bc3ad43c0

View File

@ -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;