From 12127972ad15bfd71d764c4db5dd5afa7638f487 Mon Sep 17 00:00:00 2001 From: Josef Moravec 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 Signed-off-by: Nick Clemens (cherry picked from commit 28ff4f6393e65ebfca60c05611fafc926f1fb239) Signed-off-by: Martin Renvoize (cherry picked from commit 2712e1ee55208332db4ec01310f58b8fa0b882c6) Signed-off-by: Lucas Gass --- 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.39.5