From: Bernd Bleßmann Date: Tue, 10 Jan 2017 16:54:51 +0000 (+0100) Subject: CsvImport Aufträge: Variable besser benannt und Kommentar berichtigt. X-Git-Tag: release-3.5.4~1751 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=59e3b9a9b52a94beb8b17f38743bc60c4372c401;p=kivitendo-erp.git CsvImport Aufträge: Variable besser benannt und Kommentar berichtigt. --- diff --git a/SL/Controller/CsvImport/Order.pm b/SL/Controller/CsvImport/Order.pm index 656567f09..21273347b 100644 --- a/SL/Controller/CsvImport/Order.pm +++ b/SL/Controller/CsvImport/Order.pm @@ -656,16 +656,16 @@ sub handle_prices_and_taxes() { sub save_objects { my ($self, %params) = @_; - # set order number and collect to save - my $objects_to_save = []; + # Collect orders without errors to save. + my $entries_to_save = []; foreach my $entry (@{ $self->controller->data }) { next if $entry->{raw_data}->{datatype} ne $self->_order_column; next if @{ $entry->{errors} }; - push @{ $objects_to_save }, $entry; + push @{ $entries_to_save }, $entry; } - $self->SUPER::save_objects(data => $objects_to_save); + $self->SUPER::save_objects(data => $entries_to_save); } sub _order_column {