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)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 23 May 2016 16:48:57 +0000 (16:48 +0000)
commitd6c37a0994fd27e8fdbcc99a70100ea90495c582
treecd5e5dcf54bfae65694f24c6968bdb570bd6c2f0
parent8da05cb2a8793b5866c50f796569ce3336807256
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>
Koha/Calendar.pm