X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f74b0dac7a8e55cc7a67c4a03a3ee229415b3fbd..a0d9f09a2e63f0be9eda333ab7fa78679ea55759:/SL/BackgroundJob/CsvImport.pm diff --git a/SL/BackgroundJob/CsvImport.pm b/SL/BackgroundJob/CsvImport.pm index 1798d67ba..96583d78b 100644 --- a/SL/BackgroundJob/CsvImport.pm +++ b/SL/BackgroundJob/CsvImport.pm @@ -5,6 +5,7 @@ use strict; use parent qw(SL::BackgroundJob::Base); use YAML (); +use SL::JSON; use SL::DB::CsvImportProfile; use SL::SessionFile::Random; @@ -60,6 +61,7 @@ sub do_import { my $job = $self->{db_obj}; $c->profile($self->profile); + $c->mappings(SL::JSON::from_json($self->profile->get('json_mappings'))) if $self->profile->get('json_mappings'); $c->type($job->data_as_hash->{type}); $c->{employee_id} = $job->data_as_hash->{employee_id};