Bugzilla – Attachment 13359 Details for
Bug 8039
Self Checkout/SIP: Allow authentication with userid and password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug_8039: Try userid if cardnumber borrower search fails in SIP
bug8039-Try-userid-if-cardnumber-borrower-search-f.patch (text/plain), 1.29 KB, created by
Kyle M Hall (khall)
on 2012-11-09 16:14:36 UTC
(
hide
)
Description:
bug_8039: Try userid if cardnumber borrower search fails in SIP
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-11-09 16:14:36 UTC
Size:
1.29 KB
patch
obsolete
>From e2c8c45ac57d6b6a7f0cb4f38d5950178fd4ef03 Mon Sep 17 00:00:00 2001 >From: Srdjan <srdjan@catalyst.net.nz> >Date: Wed, 30 May 2012 13:38:35 +1200 >Subject: [PATCH] bug_8039: Try userid if cardnumber borrower search fails in SIP >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/SIP/ILS/Patron.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm >index d3a9762..fdd79a8 100644 >--- a/C4/SIP/ILS/Patron.pm >+++ b/C4/SIP/ILS/Patron.pm >@@ -37,13 +37,13 @@ sub new { > my ($class, $patron_id) = @_; > my $type = ref($class) || $class; > my $self; >- $kp = GetMember(cardnumber=>$patron_id); >+ $kp = GetMember(cardnumber=>$patron_id) || GetMember(userid=>$patron_id); > $debug and warn "new Patron (GetMember): " . Dumper($kp); > unless (defined $kp) { > syslog("LOG_DEBUG", "new ILS::Patron(%s): no such patron", $patron_id); > return; > } >- $kp = GetMemberDetails(undef,$patron_id); >+ $kp = GetMemberDetails($kp->{borrowernumber}); > $debug and warn "new Patron (GetMemberDetails): " . Dumper($kp); > my $pw = $kp->{password}; ### FIXME - md5hash -- deal with . > my $flags = $kp->{flags}; # or warn "Warning: No flags from patron object for '$patron_id'"; >-- >1.7.2.5
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 8039
:
9768
|
9845
|
11070
|
13359
|
13981
|
13982