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:
parent
75f68914be
commit
0ae97bba6b
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue