Bug 16443: Make C4::Members::Statistics plack safe
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 May 2016 19:08:53 +0000 (20:08 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 15 Jun 2016 06:17:23 +0000 (08:17 +0200)
commit93ffd58fe32dd4e27056f5cebf18b975f3d0624b
tree860f4bb9dbee812f723cd41e4abfa1e7ef141adf
parent6ff159e214a2ebf904ff7f1b77f0f75162f8afe8
Bug 16443: Make C4::Members::Statistics plack safe

If the prefs is updated, the fields won't be.
To make sure we already fetch updated values, we should remove the
package variable and define it in the subroutine.

There is not test plan, just make sure the changes are consistent.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 29e402d398f567e2526c89695384bce7f4e4b737)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/Members/Statistics.pm