projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87763c
)
Einträge mit Fehlern nicht importieren
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 1 Mar 2011 13:19:24 +0000
(14:19 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 16 Jun 2011 06:44:20 +0000
(08:44 +0200)
SL/Controller/CsvImport/Base.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/CsvImport/Base.pm
b/SL/Controller/CsvImport/Base.pm
index
13ae97c
..
9dc9168
100644
(file)
--- 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 {