BackgroundJobs: "speichern und ausführen" für neue Jobs gefixt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 9 Aug 2013 12:27:35 +0000 (14:27 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 9 Aug 2013 12:28:06 +0000 (14:28 +0200)
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;
 }