From: Thomas Heck Date: Fri, 24 Aug 2012 12:05:21 +0000 (+0200) Subject: CSV-Import: Fehlermeldungen anzeigen gefixt X-Git-Tag: release-3.0.0beta1~277 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5fa7820bf6121b2c5e408a3e77bf1071e6ce4aee;p=kivitendo-erp.git CSV-Import: Fehlermeldungen anzeigen gefixt --- diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 5aa6066b0..694d187de 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -39,7 +39,7 @@ sub run { $self->controller->errors([ $self->csv->errors ]) if $self->csv->errors; - return unless $self->csv->header; + return if ( !$self->csv->header || $self->csv->errors ) ; my $headers = { headers => [ grep { $profile->{$_} } @{ $self->csv->header } ] }; $headers->{methods} = [ map { $profile->{$_} } @{ $headers->{headers} } ]; @@ -328,3 +328,5 @@ sub fix_field_lengths { } 1; + +