[Koha-bugs] [Bug 19475] Calendar copy creates duplicates
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 26 14:50:34 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19475
Fridolin SOMERS <fridolin.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #100483|0 |1
is obsolete| |
--- Comment #7 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 101847
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101847&action=edit
Bug 19475: Don't copy holiday if it already exists in target calendar
Calendars copy tool created duplicate values to database.
Holidays in target calendar weren't checked before
inserting new holidays. This patch fixes this.
To test:
1. Add holidays for branch A
2. Copy branch A calendar to branch B
3. Repeat copy to branch B
=> Check database, branch B has now duplicate holidays
4. Delete holidays from branches A and B
5. Apply patch
6. Repeat steps 1-3
=> Check database, no duplicates
Sponsored-by: Koha-Suomi Oy
Signed-off-by: Michal Denar <black23 at gmail.com>
Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list