]> git.koha-community.org Git - koha.git/commit
Bug 36508: Refresh patron object when updating category
authorNick Clemens <nick@bywatersolutions.com>
Wed, 3 Apr 2024 20:35:46 +0000 (20:35 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 23 May 2024 14:08:27 +0000 (14:08 +0000)
commita546d960aaa233862974d5a9bbcf840d8cb691ed
tree110c6dedc98ddce13a78564a5bc23a91beec7223
parent3005a4565ab615457b1b212155c00a33f91f7cab
Bug 36508: Refresh patron object when updating category

To test:
1 - Find a ptron, I sued #45 in KTD, note their category
2 - Update them from one category to another using finesunder:
    perl misc/cronjobs/update_patrons_category.pl -f ST -t S --finesunder=5.00 --where "me.borrowernumber=45" -v -c
3 - Check their modification log (I told you to enabled BorrowersLog,
    right?)
4 - See many fields reported changed
5 - Apply patch
6 - Repeat, but change the to and from options
    perl misc/cronjobs/update_patrons_category.pl -f S -t ST --finesunder=5.00 --where "me.borrowernumber=45" -v -c
7 - Note only one column changed in the logs
8 - Ask for unit tests

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit cae2efd69d8ad63822914377733f9819889a0ec1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 2ff0a6578311f029def133446c99a7c7576b8ae0)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Patrons.pm