Bugzilla – Attachment 71363 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 follow-up) Remove unecessary redirect
Bug-15752-QA-follow-up-Remove-unecessary-redirect.patch (text/plain), 1.45 KB, created by
Katrin Fischer
on 2018-02-09 07:14:27 UTC
(
hide
)
Description:
Bug 15752: (QA follow-up) Remove unecessary redirect
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-02-09 07:14:27 UTC
Size:
1.45 KB
patch
obsolete
>From 67acd5ae4050b13f2c87f869f110fcda37ef9f87 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Thu, 21 Dec 2017 19:17:20 +0000 >Subject: [PATCH] Bug 15752: (QA follow-up) Remove unecessary redirect > >If the borrowernumber is defined in query, it starts to get information >about previous borrower and the new one is taken into account fully on >second page reload > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > circ/circulation.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 46d5ec4..0594b60 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -85,11 +85,13 @@ my $barcodes = []; > my $barcode = $query->param('barcode'); > my $findborrower; > my $autoswitched; >+my $borrowernumber = $query->param('borrowernumber'); > > if (C4::Context->preference("AutoSwitchPatron") && $barcode) { > if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) { > $findborrower = $barcode; > undef $barcode; >+ undef $borrowernumber; > $autoswitched = 1; > } > } >@@ -117,7 +119,6 @@ if ( $barcode || ( defined($barcode) && $barcode eq '0' ) ) { > $barcodes = [ uniq @$barcodes ]; > > my $template_name = q|circ/circulation.tt|; >-my $borrowernumber = $query->param('borrowernumber'); > my $patron = $borrowernumber ? Koha::Patrons->find( $borrowernumber ) : undef; > my $batch = $query->param('batch'); > my $batch_allowed = 0; >-- >2.1.4
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