[Koha-bugs] [Bug 17015] New Koha Calendar

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 28 21:35:57 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17015

--- Comment #366 from Émily-Rose Francoeur <emily-rose.francoeur at inLibro.com> ---
Created attachment 156355
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156355&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.


More information about the Koha-bugs mailing list