From 727db2aab513d3312798f96441f6b09e06c6063f Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 24 Oct 2022 10:20:56 -0600 Subject: [PATCH] Fix context menu actions that use nm_action gave "Uncaught nm_action is not a function!" --- api/js/etemplate/et2_extension_nextmatch_actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/js/etemplate/et2_extension_nextmatch_actions.js b/api/js/etemplate/et2_extension_nextmatch_actions.js index 774c4f8e74..5a4f3986fc 100644 --- a/api/js/etemplate/et2_extension_nextmatch_actions.js +++ b/api/js/etemplate/et2_extension_nextmatch_actions.js @@ -400,6 +400,9 @@ export function nm_compare_field(_action, _senders, _target) // TODO: This code is rather suboptimal! No global variables as this code will // run in a global context +window.nm_action = nm_action; +window.fetchAll = fetchAll; +window.doLongTask = doLongTask; window.nm_popup_action = null; window.nm_popup_ids = null;