]> git.koha-community.org Git - koha.git/commit
Bug 21027: Fix checkout statistics if 1+ of the fields is not defined
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 29 Apr 2019 00:55:02 +0000 (20:55 -0400)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 13 Aug 2019 19:23:23 +0000 (19:23 +0000)
commit51f9b88c36845162a7cbf795775bcac95a9e4be4
treeee1ff36e935b62da6c44fb8c6fdf44c2a1567b99
parent48aaab491db0565a3864c3e121c0e2ebf6ea2c86
Bug 21027: Fix checkout statistics if 1+ of the fields is not defined

TEST

- Use a patron who hasn't checked out items before
- Set  StatisticsFields to itype|ccode
- Check out some items without location
- Verify that statistics stable shows the correct number of checkouts
- Check out one item with a location or just change one of your checked out items
- Verify the total is still correct
- Change  StatisticsFields to location|itype|ccode
- Verify the total has changed now - it's only 1 (the one with a location)

Apply the patch and try again

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 17a71b990076efd04c15de6b3165c33fffe037a3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 49fb1c0ae86bb888485385294466d312d069c8dc)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
members/statistics.pl