]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Hintergrundjob-Validierung: 'keine Spec' als '* * * * *' behandeln
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 30 Aug 2012 07:49:16 +0000 (09:49 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 30 Aug 2012 07:49:16 +0000 (09:49 +0200)
SL/DB/BackgroundJob.pm

index ce1c3991dbfbf722efd1cd7a89d248437fa4a50b..b7b907bb77026f6144d7a602c29985a89ab814a1 100644 (file)
@@ -90,7 +90,7 @@ sub validate {
   }
 
   eval {
   }
 
   eval {
-    DateTime::Event::Cron->new_from_cron($self->cron_spec)->next(DateTime->now_local);
+    DateTime::Event::Cron->new_from_cron($self->cron_spec || '* * * * *')->next(DateTime->now_local);
     1;
   } or push @errors, $::locale->text('The execution schedule is invalid.');
 
     1;
   } or push @errors, $::locale->text('The execution schedule is invalid.');