Koha/tools
Emmi Takkinen 05d0406bd6 Bug 33667: Allow copying holidays to all libraries when editing
When editing an existing holiday and checking the
"copy to all libraires" checkbox, the other calendars won't
get updates. Allow this by first checking if holiday exists
in target calendar and if not, add it.

To test:
1. Add unique holiday to branch A.
2. Don't check checkbox "Copy to all libraries".
3. Save.
4. Verify the holidays shows on all calendars as
a green box.
5. Edit the holiday, now check "Copy to all libraries"
and save.
=> Verify nothing has changed in other calendars:
only the green box, no holiday in list on the right
6. Edit again, make a change to description,
check checkbox, save.
=> Verify it's still not showing in the other
calendars.
9. Apply this patch.
10. Edit holiday again, check "Copy to all libraries"
and save.
=> Verify holiday is now added to other calendars.
11. Edit again, this time do not copy and save.
=> Verify holiday was edited just in branch A.
12. Again edit, check and save.
=> Verify holiday was edited in all libraries.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Sam Lau <samalau@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 83589f0317)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 8a34254953)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-07-18 13:32:49 +00:00
..
csv-profiles
access_files.pl Bug 33341: Address some perlcritic errors in 5.36 2023-04-11 10:54:27 +00:00
additional-contents.pl
ajax-inventory.pl
automatic_item_modification_by_age.pl
background-job-progress.pl
batch_delete_records.pl
batch_extend_due_dates.pl
batch_record_modification.pl
batch_records_ajax.pl
batchMod.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
inventory.pl Bug 33989: Only look up authorized value descriptions for items in results 2023-07-18 11:33:35 +00:00
letter.pl Bug 32221: Borrowers.password should no longer be an option 2023-01-31 14:08:31 +00:00
manage-marc-import.pl Bug 33412: Fix comparison when checking for overlay framework 2023-05-15 10:35:22 +00:00
marc_modification_templates.pl
modborrowers.pl Bug 31095: (follow-up) Iterate debarments in batch mod 2023-02-01 15:40:10 +00:00
newHolidays.pl
overduerules.pl
page.pl
picture-upload.pl Bug 33341: Address some perlcritic errors in 5.36 2023-04-11 10:54:27 +00:00
problem-reports.pl
quotes-upload.pl
quotes.pl
scheduler.pl
showdiffmarc.pl
stage-marc-import.pl
stockrotation.pl Bug 30869: Add the ability to delete stock rotation rotas 2023-03-01 15:32:49 +00:00
tools-home.pl Bug 33595: (bug 26628 follow-up) Fix authorization for tools-home.pl 2023-06-07 10:16:07 +00:00
upload-cover-image.pl
upload-file.pl
upload.pl
viewlog.pl