speak better perlish for last commit
authorJan Büren <jan@kivitendo-premium.de>
Mon, 30 Nov 2015 14:45:57 +0000 (15:45 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 30 Nov 2015 14:45:57 +0000 (15:45 +0100)
bin/mozilla/do.pl

index 55c37ad..c549408 100644 (file)
@@ -1737,9 +1737,7 @@ sub transfer_in_out_default {
   undef (@all_requests);
   foreach my $i (1 .. $form->{rowcount}) {
     next unless ($form->{"id_$i"} && $form->{"stock_${prefix}_$i"});
-    foreach my $request (@{ DO->unpack_stock_information('packed' => $form->{"stock_${prefix}_$i"}) }) {
-      push @all_requests, $request;
-    }
+    push @all_requests, @{ DO->unpack_stock_information('packed' => $form->{"stock_${prefix}_$i"}) };
   }
   DO->transfer_in_out('direction' => $prefix,
                       'requests'  => \@all_requests);