From bc7d2f2f64dbedaa10a193874b18d5c1068d325e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 24 Jul 2025 12:08:34 +0200 Subject: [PATCH] Bug 40321: Fix hold history search The table global search didn't combine correctly with the status filters. Test plan: 1. Have a patron with holds history 2. Go to members/holdshistory.pl?borrowernumber=x where x is the borrowernumber 3. Try to us the DT seacch to filter => Filtering is working as expected Signed-off-by: Lucas Gass Signed-off-by: Brendan Lawlor Signed-off-by: Lucas Gass (cherry picked from commit 088927aac17999965005125ebf74eb0753071760) Signed-off-by: Paul Derscheid (cherry picked from commit 1ef30cc10c3e3656b2919b55270af2c2a5691540) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt index afbf7dddd6..aa04962377 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt @@ -181,7 +181,7 @@ let old_holds_table = build_holds_table("#table_oldholdshistory", 1); function build_holds_table(table_id, old){ let additional_filters = { - "-or": function(){ + "-and": function(){ let statuses = []; let include_cancelled = false; if ( table_id == '#table_holdshistory' ) {