From 7994cbd4138bae06bb15da6793e3f7bf8f2493d5 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 24 Jan 2024 09:59:43 +0000 Subject: [PATCH] Bug 34893: [22.05] Add a Koha::Patron->update_lastseen method Without this patch, we get an error trace whe calling AuthenticatePatron The method Koha::Patron->update_lastseen is not covered by tests! (cherry picked from commit 3417a7052a549bde30f0c5c400c9f228f107308f) Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index cf10c2582d..925d892e8b 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -2311,6 +2311,20 @@ sub virtualshelves { return Koha::Virtualshelves->_new_from_dbic( scalar $self->_result->virtualshelves ); } +=head2 update_lastseen + + $patron->update_lastseen(); + + Patron method to update lastseen field in borrower + to record that patron has been seen via sip connection + +=cut + +sub update_lastseen { + my ( $self ) = @_; + $self->track_login; +} + =head2 Internal methods =head3 _type -- 2.39.5