Bug 15504: (follow-up) Use borrowernumber in Koha::Patrons->find

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-10-06 11:02:54 +01:00 committed by Tomas Cohen Arazi
parent 75f68914be
commit 0ae97bba6b
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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 );