From 2ea279adf58fe9fe3096d9aaaac0346368817363 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 --- C4/Circulation.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 6fcd491820..80273c6e69 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.30.2