https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15504

--- Comment #68 from Andrii Nugged <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to