Revision 2c597c2d
Von Sven Schöling vor etwa 9 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
17 | 17 |
use SL::Controller::CsvImport::Shipto; |
18 | 18 |
use SL::Controller::CsvImport::Project; |
19 | 19 |
use SL::Controller::CsvImport::Order; |
20 |
use SL::JSON; |
|
20 | 21 |
use SL::BackgroundJob::CsvImport; |
21 | 22 |
use SL::System::TaskServer; |
22 | 23 |
|
... | ... | |
318 | 319 |
|
319 | 320 |
$self->{deferred} = 1; |
320 | 321 |
|
321 |
$self->render_inputs; |
|
322 |
if ($::request->type eq 'json') { |
|
323 |
$self->render(\ SL::JSON::to_json($self->{background_job}->as_tree), { type => 'json' }) |
|
324 |
} else { |
|
325 |
$self->render_inputs; |
|
326 |
} |
|
322 | 327 |
} |
323 | 328 |
|
324 | 329 |
sub test_and_import { |
Auch abrufbar als: Unified diff
BackgroundJobs optional als json ausliefern