X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/aee10de25a63ec46afee4aec4b50ff509c0dcfd1..b6cdc1548bb601935b6c44300895bc996edc572a:/SL/Controller/CsvImport.pm diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index bc0534f10..89bf33c2b 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -38,6 +38,7 @@ __PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('ensure_form_structure'); __PACKAGE__->run_before('check_type', except => [ qw(report) ]); __PACKAGE__->run_before('load_all_profiles'); +__PACKAGE__->run_before('check_task_server'); __PACKAGE__->run_after('cleanup_reports'); @@ -497,4 +498,12 @@ sub cleanup_reports { SL::DB::Manager::CsvImportReport->cleanup; } +sub check_task_server { + return 1 if $_[0]->task_server->is_running; + + flash('info', t8('The task server is not running at the moment but needed for this module')); + + 1; +} + 1;