Bugzilla – Attachment 86819 Details for
Bug 13763
Renew feature does not check for the BarcodeInputFilter option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13763: (follow-up) Strip leading whitespace characters from input barcode
Bug-13763-follow-up-Strip-leading-whitespace-chara.patch (text/plain), 1.03 KB, created by
Josef Moravec
on 2019-03-20 15:54:48 UTC
(
hide
)
Description:
Bug 13763: (follow-up) Strip leading whitespace characters from input barcode
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-03-20 15:54:48 UTC
Size:
1.03 KB
patch
obsolete
>From 474ab297ddf3c46bcb1be6219983a4d368394c63 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Wed, 20 Mar 2019 15:52:07 +0000 >Subject: [PATCH] Bug 13763: (follow-up) Strip leading whitespace characters > from input barcode > >this makes the work with barcodes from input consistant on checking out, > checking in and renewing > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > circ/renew.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/circ/renew.pl b/circ/renew.pl >index ef1a6ffc1d..1f3254a131 100755 >--- a/circ/renew.pl >+++ b/circ/renew.pl >@@ -44,6 +44,7 @@ my ( $template, $librarian, $cookie, $flags ) = get_template_and_user( > my $schema = Koha::Database->new()->schema(); > > my $barcode = $cgi->param('barcode'); >+$barcode =~ s/^\s*|\s*$//g; # remove leading/trailing whitespae > $barcode = barcodedecode($barcode) if( $barcode && C4::Context->preference('itemBarcodeInputFilter')); > my $override_limit = $cgi->param('override_limit'); > my $override_holds = $cgi->param('override_holds'); >-- >2.11.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 13763
:
86594
|
86745
|
86818
| 86819