BackgroundJobs: "speichern und ausführen" für neue Jobs gefixt
[kivitendo-erp.git] / SL / Controller / BackgroundJob.pm
index 7977977..5f937d5 100644 (file)
@@ -92,6 +92,7 @@ sub action_destroy {
 sub action_save_and_execute {
   my ($self) = @_;
 
+  $self->background_job(SL::DB::BackgroundJob->new) if !$self->background_job;
   return unless $self->create_or_update;
   $self->action_execute;
 }