Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Emmi Takkinen 8a34254953
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>
2023-07-17 16:42:42 +01:00
..
access_files.tt
additional-contents.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 32914: Use template wrapper for batch record deletion and modification templates 2023-05-16 15:17:32 -03:00
batch_extend_due_dates.tt
batch_record_modification.tt Bug 33624: Hide the "list" tab if authority is selected 2023-05-17 10:28:24 -03:00
batchMod-del.tt
batchMod-edit.tt
batchMod.tt
cleanborrowers.tt
csv-profiles.tt
export.tt
holidays.tt Bug 33667: Allow copying holidays to all libraries when editing 2023-07-17 16:42:42 +01:00
import_borrowers.tt
inventory.tt Bug 31212: Change datelastseen from date to datetime field 2023-05-12 17:49:55 -03:00
letter.tt
manage-marc-import.tt Bug 33855: Clean up forms and page sections on 'manage MARC imports' page 2023-07-12 09:21:28 +01:00
marc_modification_templates.tt
modborrowers.tt Bug 25379: (QA follow-up) Adjust other occurrences and add line break 2023-05-09 11:47:01 -03:00
overduerules.tt Bug 33203: Add letter_code to the letter dropdown text 2023-05-18 12:13:40 -03:00
page.tt
picture-upload.tt
preview_letter.tt
problem-reports.tt
quotes-upload.tt
quotes.tt
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 33865: (bug 27421 follow-up) Remove leftover 2023-06-09 11:22:02 -03:00
stockrotation.tt
tools-home.tt
upload-images.tt
upload.tt
viewlog.tt Bug 31585: Fix 'acquisition order' and 'acquisition claim' 2023-05-19 15:05:28 -03:00