]> git.koha-community.org Git - koha.git/commit
Bug 16539 - Koha::Cache is incorrectly caching single holidays
authorNick Clemens <nick@bywatersolutions.com>
Tue, 17 May 2016 18:39:49 +0000 (14:39 -0400)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 25 May 2016 08:22:00 +0000 (10:22 +0200)
commit4684d3072ed88041b647b32af4aca5f0d7bec0f1
tree3e4fc08dd2e89d5e0e78e89786442e0b8e961fca
parent09a35722ab562a5fe33f933d77d2d18510ee0122
Bug 16539 - Koha::Cache is incorrectly caching single holidays

This makes the loop add holidays for each bracnh instead of the calling
branch

To test:
I used memcached-tools to view the cache, clear the cache, and wait for
holidays to regnerate

Have a branches with different holidays
Clear the cache
Do a checkout
View the cache - one libraries holidays are repeated for all branches
Apply patch
Clear the cache
Do a checkout
Library holidays are correctly cached

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d6c37a0994fd27e8fdbcc99a70100ea90495c582)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Calendar.pm