Bugzilla – Attachment 69995 Details for
Bug 15752
Automatically switch from circulation to new patron when a cardnumber is scanned during circulation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15752: QA followup - search for patrons only if param barcode is defined
Bug-15752-QA-followup---search-for-patrons-only-if.patch (text/plain), 1.39 KB, created by
Kyle M Hall
on 2017-12-21 10:54:29 UTC
(
hide
)
Description:
Bug 15752: QA followup - search for patrons only if param barcode is defined
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2017-12-21 10:54:29 UTC
Size:
1.39 KB
patch
obsolete
>From fc10131cec8f09636c66a77000bd1c803e6b9b45 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Fri, 18 Aug 2017 12:20:40 +0200 >Subject: [PATCH] Bug 15752: QA followup - search for patrons only if param > barcode is defined > >Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > circ/circulation.pl | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index ff4950a..73ca23e 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -82,14 +82,15 @@ if (!C4::Context->userenv){ > } > } > >-if (C4::Context->preference("AutoSwitchPatron") ) { >- if (Koha::Patrons->search( { cardnumber => $query->param('barcode')} )->count() > 0) { >- print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$query->param('barcode')); >+my $barcodes = []; >+my $barcode = $query->param('barcode'); >+ >+if (C4::Context->preference("AutoSwitchPatron") && $barcode) { >+ if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) { >+ print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$barcode); > } > } > >-my $barcodes = []; >-my $barcode = $query->param('barcode'); > # Barcode given by user could be '0' > if ( $barcode || ( defined($barcode) && $barcode eq '0' ) ) { > $barcodes = [ $barcode ]; >-- >2.10.2
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 15752
:
47716
|
55953
|
57015
|
66175
|
66176
|
66177
|
67037
|
67038
|
67039
|
67174
|
67175
|
67176
|
69994
|
69995
|
69996
|
70077
|
70085
|
71359
|
71360
|
71361
|
71362
|
71363