Revision b6cdc154
Von Sven Schöling vor fast 12 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
38 | 38 |
__PACKAGE__->run_before('ensure_form_structure'); |
39 | 39 |
__PACKAGE__->run_before('check_type', except => [ qw(report) ]); |
40 | 40 |
__PACKAGE__->run_before('load_all_profiles'); |
41 |
__PACKAGE__->run_before('check_task_server'); |
|
41 | 42 |
|
42 | 43 |
__PACKAGE__->run_after('cleanup_reports'); |
43 | 44 |
|
... | ... | |
497 | 498 |
SL::DB::Manager::CsvImportReport->cleanup; |
498 | 499 |
} |
499 | 500 |
|
501 |
sub check_task_server { |
|
502 |
return 1 if $_[0]->task_server->is_running; |
|
503 |
|
|
504 |
flash('info', t8('The task server is not running at the moment but needed for this module')); |
|
505 |
|
|
506 |
1; |
|
507 |
} |
|
508 |
|
|
500 | 509 |
1; |
Auch abrufbar als: Unified diff
Warnung wenn der Taskserver nicht läuft