From: Moritz Bunkus Date: Wed, 2 Nov 2011 16:34:57 +0000 (+0100) Subject: Anzahl nicht importierter Objekte richtig anzeigen, sofern == 0 X-Git-Tag: release-2.7.0beta1~157^2~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b88b33d1f5ba8201a00c64ffbdb8f770632dbbd2;p=kivitendo-erp.git Anzahl nicht importierter Objekte richtig anzeigen, sofern == 0 --- diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index c30634b96..9cca6cd80 100644 --- 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 || [] });