Api: Avoid infinite loop if requested file does not actually provide the class

This commit is contained in:
nathangray 2021-03-26 09:06:34 -06:00
parent 026b088dd0
commit b4dd62de69

View File

@ -400,8 +400,11 @@ egwFnct.prototype.setValue = function(_value)
{ {
// cache for a day, better then no invalidation // cache for a day, better then no invalidation
egw.includeJS("/"+parts[1]+"/js/app.js?"+((new Date()).valueOf()/86400|0).toString(), function () egw.includeJS("/"+parts[1]+"/js/app.js?"+((new Date()).valueOf()/86400|0).toString(), function ()
{
if(typeof app.classes[parts[i]] !== "undefined")
{ {
resolve(this.setValue(_value)); resolve(this.setValue(_value));
}
}.bind(this), self, egw.webserverUrl); }.bind(this), self, egw.webserverUrl);
}.bind(this)); }.bind(this));
} }