X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/59c8afd6f264246c0e5819ac02da0dd0bb10ee4d..f217d072d76183bc07723dcc29503b732bd2022d:/SL/Controller/BackgroundJob.pm diff --git a/SL/Controller/BackgroundJob.pm b/SL/Controller/BackgroundJob.pm index 27a1c69a6..8941bb694 100644 --- a/SL/Controller/BackgroundJob.pm +++ b/SL/Controller/BackgroundJob.pm @@ -99,7 +99,7 @@ sub action_save_and_execute { my ($self) = @_; $self->background_job(SL::DB::BackgroundJob->new) if !$self->background_job; - return unless $self->create_or_update; + return unless $self->create_or_update(1); $self->action_execute; } @@ -170,6 +170,7 @@ sub create_or_update { if (@errors) { flash('error', @errors); + $self->setup_form_action_bar; $self->render('background_job/form', title => $is_new ? $::locale->text('Create a new background job') : $::locale->text('Edit background job')); return; } @@ -178,7 +179,7 @@ sub create_or_update { $self->background_job->save; flash_later('info', $is_new ? $::locale->text('The background job has been created.') : $::locale->text('The background job has been saved.')); - return if $return; + return 1 if $return; $self->redirect_to($self->back_to); } @@ -207,6 +208,7 @@ sub init_models { filtered => 0, sorted => { package_name => t8('Package name'), + description => t8('Description'), type => t8('Execution type'), active => t8('Active'), cron_spec => t8('Execution schedule'),