From 0ae97bba6bcd98ff356722f332d7091d1a9e90d0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 6 Oct 2023 11:02:54 +0100 Subject: [PATCH] Bug 15504: (follow-up) Use borrowernumber in Koha::Patrons->find Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- C4/SIP/Sip/MsgType.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 30c35949a7..aa1ff45190 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -997,7 +997,7 @@ sub handle_patron_info { $resp = (PATRON_INFO_RESP); if ($patron) { if ( C4::Context->preference('TrackLastPatronActivity') ) { - my $koha_patron = Koha::Patrons->find($patron->userid); + my $koha_patron = Koha::Patrons->find($patron->{borrowernumber}); $koha_patron->update_lastseen('connection'); } $resp .= patron_status_string( $patron, $server ); -- 2.39.5