From 5fa7820bf6121b2c5e408a3e77bf1071e6ce4aee Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Fri, 24 Aug 2012 14:05:21 +0200 Subject: [PATCH] CSV-Import: Fehlermeldungen anzeigen gefixt --- SL/Controller/CsvImport/Base.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + + -- 2.20.1