From b4dd62de69fb2df31336f8c7fa9952914e958c0f Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 26 Mar 2021 09:06:34 -0600 Subject: [PATCH] Api: Avoid infinite loop if requested file does not actually provide the class --- api/js/egw_action/egw_action_common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/js/egw_action/egw_action_common.js b/api/js/egw_action/egw_action_common.js index 18d5612b11..e5e46eaa11 100644 --- a/api/js/egw_action/egw_action_common.js +++ b/api/js/egw_action/egw_action_common.js @@ -401,7 +401,10 @@ egwFnct.prototype.setValue = function(_value) // cache for a day, better then no invalidation egw.includeJS("/"+parts[1]+"/js/app.js?"+((new Date()).valueOf()/86400|0).toString(), function () { - resolve(this.setValue(_value)); + if(typeof app.classes[parts[i]] !== "undefined") + { + resolve(this.setValue(_value)); + } }.bind(this), self, egw.webserverUrl); }.bind(this)); }