From: Moritz Bunkus Date: Tue, 28 Feb 2017 08:55:15 +0000 (+0100) Subject: Dateimanagement: überflüssigen Code in SL::Controller::DownloadZip entfernt X-Git-Tag: release-3.5.4~1425 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cd69ad3d3edf8adcf332e3c19f8f16dd08f800c6;p=kivitendo-erp.git Dateimanagement: überflüssigen Code in SL::Controller::DownloadZip entfernt --- diff --git a/SL/Controller/DownloadZip.pm b/SL/Controller/DownloadZip.pm index 57c436a2f..0e60896b1 100644 --- a/SL/Controller/DownloadZip.pm +++ b/SL/Controller/DownloadZip.pm @@ -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, );