X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ec4aa5bbad60c76fd7b898fcbbdf2de705a055c4..ea8e8a6295c01df6520af9f48af61642b7c2895b:/SL/BackgroundJob/CsvImport.pm diff --git a/SL/BackgroundJob/CsvImport.pm b/SL/BackgroundJob/CsvImport.pm index 7df8b9b47..b5e6f2908 100644 --- a/SL/BackgroundJob/CsvImport.pm +++ b/SL/BackgroundJob/CsvImport.pm @@ -82,8 +82,9 @@ sub do_import { ); $c->add_progress_tracker($self); + my $session_id = $job->data_as_hash->{session_id}; - $c->test_and_import(test => $test, session_id => $job->data_as_hash->{session_id}); + $c->test_and_import(test => $test, session_id => $session_id); if ($c->errors) { $job->set_data( @@ -91,7 +92,7 @@ sub do_import { )->save; } else { - my $report_id = $c->save_report; + my $report_id = $c->save_report(session_id => $session_id); $job->set_data(report_id => $report_id)->save; $c->track_progress(finished => 1);