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:
d5a003c
)
Anzahl nicht importierter Objekte richtig anzeigen, sofern == 0
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 2 Nov 2011 16:34:57 +0000
(17:34 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 2 Nov 2011 16:34:57 +0000
(17:34 +0100)
SL/Controller/CsvImport.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/CsvImport.pm
b/SL/Controller/CsvImport.pm
index
c30634b
..
9cca6cd
100644
(file)
--- a/
SL/Controller/CsvImport.pm
+++ b/
SL/Controller/CsvImport.pm
@@
-168,6
+168,8
@@
sub test_and_import {
my $worker = $self->create_worker($file);
$worker->run;
+
+ $self->num_imported(0);
$worker->save_objects if !$params{test};
$self->num_importable(scalar grep { !$_ } map { scalar @{ $_->{errors} } } @{ $self->data || [] });