From 3596c7d795c479c672cd846c01498270ac54f75b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Apr 2022 15:00:29 +0200 Subject: [PATCH] Bug 30626: Don't generate the query if no term passed --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 2c05bd4a464..7b8e024d50d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -600,7 +600,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { // Build query for the global search filter var or_query_parameters = settings.aoColumns .filter(function(col) { - return col.bSearchable + return col.bSearchable && filter != '' }) .map(function(col) { var value = filter; -- 2.25.1