]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 30 Apr 2024 12:32:05 +0000 (14:32 +0200)
commitcae2efd69d8ad63822914377733f9819889a0ec1
tree84b235bdc3646d8221bed881c4e1a8c8605f0b79
parent8f359aa72c46eaa493e817d4d099b6548846edf0
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>
Koha/Patrons.pm