[Koha-bugs] [Bug 25723] Improve efficiency of holiday calculation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 17 13:43:53 CEST 2020


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #105937|0                           |1
        is obsolete|                            |
 Attachment #105941|0                           |1
        is obsolete|                            |

--- Comment #23 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 105947
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105947&action=edit
Bug 25723: Use the same code for single and exception holidays

This patch refactors is_exception_holiday and is_single_holiday to
utilise a single _holidays method which combines the logic of the
previous single_holidays and exception_holidays methods.

As Koha::Calendar is instantiated at a branch level, we also move split
the cache into branches too.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list