Dateimanagement: überflüssigen Code in SL::Controller::DownloadZip entfernt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 08:55:15 +0000 (09:55 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:03:53 +0000 (10:03 +0100)
SL/Controller/DownloadZip.pm

index 57c436a..0e60896 100644 (file)
@@ -48,10 +48,7 @@ sub action_download_orderitems_files {
     my $orderitems = SL::DB::Manager::OrderItem->get_all(query => ['order.id' => $object_id ],
                                                          with_objects => [ 'order', 'part' ],
                                                          sort_by => 'part.partnumber ASC');
-    my $part_id = 0;
     foreach my $item ( @{$orderitems} ) {
-      next if $part_id == $item->parts_id;
-
       my @files = SL::File->get_all(object_id   => $item->parts_id,
                                     object_type => $element_type,
                                   );