From 99a469b2902ce4a0727808212fcb5a79dac75dd8 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 2 Feb 2023 19:08:08 +0000 Subject: [PATCH] Bug 32805: Update location when recording a localuse in statistics table To test: 1. Create a statistical patron and checkout, checkin to them. 2. Notice in the statistics table that the location is NULL 3. Apply patch 4. Try steps 1-2 again 5. The location should be correctly recorded in statistics.location Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 14b2c2f0b27a728772920dfe97afae7ddc2fa412) Signed-off-by: Matt Blenkinsop --- C4/Circulation.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 547c89df48..c5c9701201 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -824,6 +824,7 @@ sub CanBookBeIssued { borrowernumber => $patron->borrowernumber, ccode => $item_object->ccode, categorycode => $patron->categorycode, + location => $item_object->location, } ); ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item -- 2.39.5