Bug 16229: Deep copy on setting in cache
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 8 Apr 2016 11:43:48 +0000 (12:43 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 23 Jun 2016 07:23:55 +0000 (09:23 +0200)
commita54774cbf2a5157b54722444c629d70f0f915af0
tree45188e8bda85beac3682df5e4ea0e778841a8950
parent6599ae3ddc2340ef050046e3162e6ca48a2e7802
Bug 16229: Deep copy on setting in cache

Koha::Cache->set_in_cache should deep copy (if needed) to avoid the
value which has been set in cache to be unintentionally modified later.

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
(cherry picked from commit 33ad907a820debc87bf2629cc1eed4a38b3b4905)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Cache.pm
t/Cache.t