[Koha-bugs] [Bug 15504] Track Patron's Last Activity
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 4 19:13:54 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15504
--- Comment #68 from Andrii Nugged <nugged at gmail.com> ---
One bug in SIP here:
File: C4/SIP/Sip/MsgType.pm
0999: if ( C4::Context->preference('TrackLastPatronActivity') ) {
1000: my $koha_patron = Koha::Patrons->find($patron->userid);
1001: $koha_patron->update_lastseen('connection');
1002: }
1003: $resp .= patron_status_string( $patron, $server );
ERROR: Cannot access 'userid' field of class 'C4::SIP::ILS::Patron' at
/usr/share/koha/lib/C4/SIP/Sip/MsgType.pm
That:
my $koha_patron = Koha::Patrons->find($patron->userid);
should be, probably, this way:
my $koha_patron = Koha::Patrons->find( { cardnumber => $patron->id
} );
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list