From 68e216abead5c75455e3ce69c1f171a2ea93c00b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 17 May 2021 22:03:32 +0200 Subject: [PATCH] fix missing the widget argument --- api/js/etemplate/et2_core_legacyJSFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_core_legacyJSFunctions.js b/api/js/etemplate/et2_core_legacyJSFunctions.js index 8b4558428a..39aad039b7 100644 --- a/api/js/etemplate/et2_core_legacyJSFunctions.js +++ b/api/js/etemplate/et2_core_legacyJSFunctions.js @@ -150,7 +150,7 @@ // Code is app.appname.function, add the arguments so it can be executed if (typeof _code == 'string' && _code.indexOf('app') == 0 && _code.split('.').length >= 3 && _code.indexOf('(') == -1) { - return function(ev) + return function(ev, widget) { const app = widget.getInstanceManager().app_obj; return egw.applyFunc(_code, [ev, _widget], context);