From b88b33d1f5ba8201a00c64ffbdb8f770632dbbd2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 2 Nov 2011 17:34:57 +0100 Subject: [PATCH] Anzahl nicht importierter Objekte richtig anzeigen, sofern == 0 --- SL/Controller/CsvImport.pm | 2 ++ 1 file changed, 2 insertions(+) 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 || [] }); -- 2.20.1