From 9f8442da7381d09b3b15c221c566675f65939609 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Tue, 25 May 2021 18:20:25 +0000
Subject: [PATCH] Bug 28455: lastseen should be updated at checkout if
 TrackLastPatronActivity is enabled

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: David Nind <david@davidnind.com>
---
 C4/Circulation.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index 10db0d226a..509d39afdc 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -1576,6 +1576,7 @@ sub AddIssue {
                 )->store;
             }
             $issue->discard_changes;
+            C4::Auth::track_login_daily( $borrower->{userid} );
             if ( $item_object->location && $item_object->location eq 'CART'
                 && ( !$item_object->permanent_location || $item_object->permanent_location ne 'CART' ) ) {
             ## Item was moved to cart via UpdateItemLocationOnCheckin, anything issued should be taken off the cart.
-- 
2.20.1