From e8619170627b60d76afbc2037981a98f99aed080 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Oct 2024 16:51:00 +0200 Subject: [PATCH] Bug 38243: Remove options.query_parameters This is never passed: `git grep query_parameters` Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 1 - koha-tmpl/opac-tmpl/bootstrap/js/datatables.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 6532379b25..1a0a893c5a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -628,7 +628,6 @@ function _dt_default_ajax (params){ query_parameters = JSON.stringify(query_parameters.length === 1?query_parameters[0]:{"-and": query_parameters}); dataSet.q = query_parameters; } - delete options.query_parameters; dataSet._match = options.criteria; diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js index 64d201861c..d7dc7aec38 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js @@ -180,9 +180,6 @@ $.fn.dataTable.ext.buttons.clearFilter = { if(query_parameters.length) { query_parameters = JSON.stringify(query_parameters.length === 1?query_parameters[0]:query_parameters); dataSet.q = query_parameters; - delete options.query_parameters; - } else { - delete options.query_parameters; } dataSet._match = options.criteria; -- 2.39.5