From cf738219d0900eea4fe8d211e13b234eb0a55099 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Wed, 25 Sep 2024 11:36:00 +0200 Subject: [PATCH] reports: fix using wrong backends when editing report filter --- .../reports2/templates/reports_edit_step2.tt | 3 +++ root/thruk/javascript/thruk-3.18.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/plugins/plugins-available/reports2/templates/reports_edit_step2.tt b/plugins/plugins-available/reports2/templates/reports_edit_step2.tt index 3863ff30ca..bcb9aa5cbc 100644 --- a/plugins/plugins-available/reports2/templates/reports_edit_step2.tt +++ b/plugins/plugins-available/reports2/templates/reports_edit_step2.tt @@ -355,6 +355,9 @@
+
[% FOR search = get_searches(c, 'dfl_', value, 1) %] [% SET prefix = 's' _ loop.index %] diff --git a/root/thruk/javascript/thruk-3.18.js b/root/thruk/javascript/thruk-3.18.js index 6058442abe..522a831ccd 100644 --- a/root/thruk/javascript/thruk-3.18.js +++ b/root/thruk/javascript/thruk-3.18.js @@ -8674,6 +8674,10 @@ var ajax_search = { } else { backend_select = ajax_search.backend_select; } + // global page wide override + if(window.ajax_search_backend_select) { + backend_select = window.ajax_search_backend_select; + } ajax_search.button_links = []; if(options.button_links != undefined) {