Bug 23158: Make the assignment statement more readable
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Jun 2019 15:37:54 +0000 (10:37 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 24 Jun 2019 16:14:35 +0000 (17:14 +0100)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

circ/circulation.pl

index 8fcb9bb..43ce1aa 100755 (executable)
@@ -330,8 +330,10 @@ if (@$barcodes) {
   my $checkout_infos;
   for my $barcode ( @$barcodes ) {
 
-    my $template_params = { barcode => $barcode };
-    $template_params->{onsite_checkout} = $onsite_checkout;
+    my $template_params = {
+        barcode         => $barcode,
+        onsite_checkout => $onsite_checkout,
+    };
 
     # always check for blockers on issuing
     my ( $error, $question, $alerts, $messages ) = CanBookBeIssued(