From 7b81cb260be092197657025bfbd930bb5e5d14e7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 1 Mar 2011 14:19:24 +0100 Subject: [PATCH] =?utf8?q?Eintr=C3=A4ge=20mit=20Fehlern=20nicht=20importie?= =?utf8?q?ren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CsvImport/Base.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 13ae97c23..9dc9168fb 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -91,6 +91,8 @@ sub save_objects { my $data = $params{data} || $self->controller->data; foreach my $entry (@{ $data }) { + next if @{ $entry->{errors} }; + if (!$entry->{object}->save) { push @{ $entry->{errors} }, $::locale->text('Error when saving: #1', $entry->{object}->db->error); } else { -- 2.20.1