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)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Wed, 20 Apr 2016 17:17:20 +0000 (17:17 +0000)
commit33ad907a820debc87bf2629cc1eed4a38b3b4905
tree2cc3bdc304ca1062276774321d83c20622a7bf42
parent956dc953b52a1fd525bc75682bbdfe6848683ace
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>
Koha/Cache.pm
t/Cache.t