From c496060464570fb6f0c5db420e49f602e7d0db2b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 8 Feb 2024 15:55:43 +0000 Subject: [PATCH] Bug 35518: Tidy the moved blocks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch just tidies the moved blocks to get us past the QA script check. Signed-off-by: Martin Renvoize (cherry picked from commit b577b6567045184adcb5bb55b7e5c70428e124ee) Signed-off-by: Fridolin Somers (cherry picked from commit 1f182d45aba607dbfaf63c98f97b8615e5eea09d) Signed-off-by: Frédéric Demians (cherry picked from commit d44a697788c947b9deb08aafaeb965f0e2b069f0) Signed-off-by: Aleisha Amohia (cherry picked from commit 870c18a6545092de9fd50c187f68dd0d6574b56b) --- circ/circulation.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index eef1442de7..eea6e2d7c2 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -63,8 +63,8 @@ use List::MoreUtils qw( uniq ); my $query = CGI->new; my $borrowernumber = $query->param('borrowernumber'); -my $barcodes = []; -my $barcode = $query->param('barcode'); +my $barcodes = []; +my $barcode = $query->param('barcode'); # Barcode given by user could be '0' if ( $barcode || ( defined($barcode) && $barcode eq '0' ) ) { @@ -112,8 +112,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( my $override_high_holds = $query->param('override_high_holds'); my $override_high_holds_tmp = $query->param('override_high_holds_tmp'); -my $sessionID = $query->cookie("CGISESSID") ; -my $session = get_session($sessionID); +my $sessionID = $query->cookie("CGISESSID"); +my $session = get_session($sessionID); my $userenv = C4::Context->userenv; my $branch = $userenv->{'branch'} // ''; @@ -122,10 +122,10 @@ my $desk_id = $userenv->{"desk_id"} || ''; my $findborrower; my $autoswitched; -if (C4::Context->preference("AutoSwitchPatron") && $barcode) { +if ( C4::Context->preference("AutoSwitchPatron") && $barcode ) { my $new_barcode = $barcode; Koha::Plugins->call( 'patron_barcode_transform', \$new_barcode ); - if (Koha::Patrons->search( { cardnumber => $new_barcode} )->count() > 0) { + if ( Koha::Patrons->search( { cardnumber => $new_barcode } )->count() > 0 ) { $findborrower = $barcode; undef $barcode; undef $borrowernumber; -- 2.39.5