X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FBackgroundJob%2FCsvImport.pm;h=18cf7cf0d375f0fc09b81be124cef239dc788d17;hb=8058448b8c3969bc043a54275fa89e4a9405908d;hp=5471addb5bdcb2cec3defaa3689e8b158b5ff038;hpb=d001c791676ec85371465f557cf21e72b09319a4;p=kivitendo-erp.git diff --git a/SL/BackgroundJob/CsvImport.pm b/SL/BackgroundJob/CsvImport.pm index 5471addb5..18cf7cf0d 100644 --- a/SL/BackgroundJob/CsvImport.pm +++ b/SL/BackgroundJob/CsvImport.pm @@ -74,7 +74,7 @@ sub do_import { plan => { 'parsing csv' => 1, 'building data' => 2, - ( 'saving data' => 3, )x!!$test, + ( 'saving data' => 3, )x!$test, 'building report' => ($test ? 3 : 4), }, num_phases => ($test ? 3 : 4), @@ -82,7 +82,7 @@ sub do_import { $c->add_progress_tracker($self); - $c->test_and_import(test => 1, session_id => $job->data_as_hash->{session_id}); + $c->test_and_import(test => $test, session_id => $job->data_as_hash->{session_id}); if ($c->errors) { $job->set_data(