Koha-clms/tools
Jonathan Druart 2ebfce62b2 Bug 38357: Prevent holidays to be wrongly added
This patch resets @holiday_list to an empty array, to prevent holidays
to be accumulated in worker's memory.

If you added single holidays to library A then others to library B,
holidays from A were also added to B.

Test plan:
Go to /cgi-bin/koha/tools/holidays.pl
Define the holidays for Centerville
 Select a date
 To: another date (pick only 2 days to ease testing)
 Set a title "cpl"
 Tick "Holidays on a range"
 Save
Define the holidays for Fairview
 Select *another* date
 To: another date (pick only 2 days to ease testing)
 Set a title "fpl"
 Tick "Holidays on a range"
 Save

=> Without this patch Fairview has 4 days of holidays instead of 2
=> With this patch applied the dates you selected are considered
holidays for Fairview

Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
2025-03-31 09:42:12 +00:00
..
csv-profiles
…
access_files.pl
…
additional-contents.pl Bug 34368: Add CSRF token to Content Management pages 2023-07-28 11:14:21 +00:00
ajax-inventory.pl
…
automatic_item_modification_by_age.pl
…
background-job-progress.pl
…
batchMod.pl Bug 34257: (QA follow-up): tidy up code 2023-09-15 10:19:54 +00:00
batch_delete_records.pl
…
batch_extend_due_dates.pl
…
batch_record_modification.pl
…
batch_records_ajax.pl
…
cleanborrowers.pl
…
copy-holidays.pl
…
csv-profiles.pl
…
exceptionHolidays.pl Bug 33667: Allow copying holidays to all libraries when editing 2023-07-18 13:32:49 +00:00
export.pl
…
holidays.pl
…
import_borrowers.pl Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-07 23:29:11 +00:00
inventory.pl Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-07 23:29:11 +00:00
letter.pl
…
manage-marc-import.pl
…
marc_modification_templates.pl
…
modborrowers.pl
…
newHolidays.pl Bug 38357: Prevent holidays to be wrongly added 2025-03-31 09:42:12 +00:00
overduerules.pl
…
page.pl
…
picture-upload.pl Bug 37488: Validate paths in datalink.txt/idlink.txt files 2024-08-13 11:53:58 -03:00
problem-reports.pl
…
quotes-upload.pl
…
quotes.pl
…
scheduler.pl Bug 39170: Improve validation of report ID 2025-02-24 17:00:49 +00:00
showdiffmarc.pl
…
stage-marc-import.pl Bug 33755: Set profile_id and add missing import 2023-08-18 13:50:43 +00:00
stockrotation.pl
…
tools-home.pl
…
upload-cover-image.pl Bug 35291: (QA follow-up) Tidying script for QA test tools 2023-11-28 14:14:18 +00:00
upload-file.pl
…
upload.pl
…
viewlog.pl Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-07 23:29:11 +00:00