From c827d2aeb0e801cd486811a04fc0839094327bca Mon Sep 17 00:00:00 2001 From: Slava Shishkin Date: Tue, 30 Sep 2025 15:19:50 +0300 Subject: [PATCH] Bug 40905: Fix "Show past entries" checkbox in unique holidays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: 1. Go to Tools → Calendar. 2. Select a branch with past unique holidays. If you don't have past closed days: Create a new holiday in a past month or so. 3. In the Unique holidays section, enable "Show past entries". 4. Past entries are not displayed. 5. Apply patch: 6. Repeat the steps above. 7. Past entries are displayed immediately. --- 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 855131c8f82..2105fbdd9a0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt @@ -631,8 +631,10 @@ $("#holidaysyearlyrepeatable").kohaTable(dt_params); $("#holidaysunique").kohaTable(dt_params); + let unique_table = $("#holidaysunique").DataTable(); + $(".show_past").on("change", function(){ - tables.draw(); + unique_table.draw(); }); $("a.helptext").click(function(){ -- 2.51.0