Bugzilla – Attachment 174285 Details for
Bug 38284
handle_patron_status dies if patron not found
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38284: Add patron check for TrackLastPatronActivityTriggers
Bug-38284-Add-patron-check-for-TrackLastPatronActi.patch (text/plain), 1.35 KB, created by
Martin Renvoize (ashimema)
on 2024-11-08 16:28:33 UTC
(
hide
)
Description:
Bug 38284: Add patron check for TrackLastPatronActivityTriggers
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-11-08 16:28:33 UTC
Size:
1.35 KB
patch
obsolete
>From c48fed958eaab69285cf52b14c063e7936c25f47 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 29 Oct 2024 09:24:36 +0000 >Subject: [PATCH] Bug 38284: Add patron check for > TrackLastPatronActivityTriggers > >If an invalid or empty cardnumber is supplied to patron status request SIP message, SIP dies silently and no 'READ:' exists on the response. > >Test plan: >1) Apply tests plan, run tests: >$ prove t/db_dependent/SIP/Message.t >2) Verify tests fail. Apply 2nd patch. Run tests again. Verify they pass. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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 6ad48672fd1..7978f9593d6 100644 >--- a/C4/SIP/Sip/MsgType.pm >+++ b/C4/SIP/Sip/MsgType.pm >@@ -504,7 +504,7 @@ sub handle_patron_status { > > $ils->check_inst_id( $fields->{ (FID_INST_ID) }, "handle_patron_status" ); > $patron = $ils->find_patron( $fields->{ (FID_PATRON_ID) } ); >- if ( C4::Context->preference('TrackLastPatronActivityTriggers') ) { >+ if ( C4::Context->preference('TrackLastPatronActivityTriggers') && $patron ) { > my $koha_patron = Koha::Patrons->find($patron->{borrowernumber}); > $koha_patron->update_lastseen('connection'); > } >-- >2.47.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38284
:
173603
|
173604
|
173735
|
173736
|
173922
|
173923
|
174284
| 174285