From 6cb61d210fda853750d0406614fa0abf6c6fbca2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 16 Jan 2026 13:42:24 +0000 Subject: [PATCH] Bug 40905: (QA follow-up) Apply same fix for exceptions table This table also has a show past holidays button, we need the same fix To test: 1 - Spam holidays into both tables You can run the SQL commands below a few times each INSERT INTO special_holidays (branchcode, day, month, year,isexception, title,description) VALUES ('CPL',FLOOR(RAND() * 28) + 1,FLOOR(RAND() * 12) + 1,FLOOR(RAND() * 6) + 2020,0,LEFT(UUID(),8),UUID()); INSERT INTO special_holidays (branchcode, day, month, year,isexception, title,description) VALUES ('CPL',FLOOR(RAND() * 28) + 1,FLOOR(RAND() * 12) + 1,FLOOR(RAND() * 6) + 2020,1,LEFT(UUID(),8),UUID()); 2 - Go to Tools->Calendar 3 - Click 'Show past holidays' for exceptions and unique holidays 4 - Confirm checking and unchecking work on both tables Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt index 2105fbdd9a0..bfd0e3e50a6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt @@ -631,9 +631,11 @@ $("#holidaysyearlyrepeatable").kohaTable(dt_params); $("#holidaysunique").kohaTable(dt_params); - let unique_table = $("#holidaysunique").DataTable(); + let exceptions_table = $("#holidayexceptions").DataTable(); + let unique_table = $("#holidaysunique").DataTable(); $(".show_past").on("change", function(){ + exceptions_table.draw(); unique_table.draw(); }); -- 2.39.5