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:
parent
d4ae3e5c48
commit
55e78b1f77
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue