X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/da2df61a078d3f7496a9e74f6540bb2e05f60541..59c8afd6f264246c0e5819ac02da0dd0bb10ee4d:/SL/Controller/BackgroundJob.pm diff --git a/SL/Controller/BackgroundJob.pm b/SL/Controller/BackgroundJob.pm index e97b36970..27a1c69a6 100644 --- a/SL/Controller/BackgroundJob.pm +++ b/SL/Controller/BackgroundJob.pm @@ -131,7 +131,9 @@ sub action_execute_class { my $package = "SL::BackgroundJob::" . $::form->{class}; eval "require $package" or die $@; - $result = $package->new->run(SL::DB::BackgroundJob->new); + my $job = SL::DB::BackgroundJob->new(data => $::form->{data}); + $job->data(decode_json($::form->{json_data})) if $::form->{json_data}; + $result = $package->new->run($job); 1; };