Bug 40905: Fix "Show past entries" checkbox in unique holidays

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.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 27b89b20b8)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Slava Shishkin 2025-09-30 15:19:50 +03:00 committed by Jacob O'Mara
parent d4ae3e5c48
commit 55e78b1f77
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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(){