https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17015
Maryse Simard <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #156355|0 |1 is obsolete| | --- Comment #382 from Maryse Simard <[email protected]> --- Created attachment 157671 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157671&action=edit Bug 17015 : Correction when creating a new library This patch is a rebase of all the other ones. I have also resolved an issue that occurred when creating a new library. When creating a library, days are copied from the first library in the "branches" table and added to the new library in the "discrete_calendar" table. The problem arises because the table stores libraries in alphabetical order based on their branch code. So, if the new library has a branch code that comes first in alphabetical order, no days can be added, which would prevent the calendar from functioning for that library. I resolved this issue by copying the days from the first library that appears in the "discrete_calendar" table. This way, we ensure that days will be found and copied. TEST PLAN 1) Apply the patch 2) Run installer/data/mysql/updatedatabase.pl 3) Run misc/cronjobs/add_days_discrete_calendar.pl 4) Check that the max date is today + 1 day 5) Run t/db_dependent/DiscreteCalendar.t 6) If all the test pass, then the rebase work 7) Now, go to “Koha administration > Libraries > New library” 8) In “Library code” enter “A” 9) Enter the name that you want 10) Click the “Submit” button 11) Go to “Tools > Calendar” 12) Select the calendar for the library you just created 13) If there are no errors displayed on the page, the issue is resolved. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
