Skip to content

Commit

Permalink
reports: fix using wrong backends when editing report filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 25, 2024
1 parent b09b04c commit cf73821
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@
<input type="hidden" name="filter.[% key %]" value="[% paneprefix %]">

<div class="w-full flexrow flex-nowrap gap-0">
<script>
var ajax_search_backend_select = 'report_backends';
</script>
<div id="[% paneprefix %]filter_pane" class="flexrow flex-wrap gap-0">
[% FOR search = get_searches(c, 'dfl_', value, 1) %]
[% SET prefix = 's' _ loop.index %]
Expand Down
4 changes: 4 additions & 0 deletions root/thruk/javascript/thruk-3.18.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cf73821

Please sign in to comment.