From 6c8971b337f64a8583760810c42a1bbcae9566bd 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 --- 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 30c35949a71..aa1ff451907 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.41.0