From ccf18550b0cd8b5caaa9e2be6de569c6eebb1411 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 4 May 2022 16:22:03 +0200 Subject: [PATCH] Bug 32030: 30063 follow-up In case one option is "0" Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- 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 d6c17c12c7..9c5386a394 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -866,7 +866,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { // FIXME eval here is bad and dangerous, how do we workaround that? $(eval(filter_type)).each(function(){ let o = $(''.format(this._id, this._str)); - if ( existing_search == this._id ) { + if ( existing_search === this._id ) { o.prop("selected", "selected"); } o.appendTo(select); -- 2.39.5