From: Moritz Bunkus Date: Thu, 30 Aug 2012 07:49:16 +0000 (+0200) Subject: Hintergrundjob-Validierung: 'keine Spec' als '* * * * *' behandeln X-Git-Tag: release-3.0.0beta1~264^2~4 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/e5f571cf1b7b61910b5f1b6f50188a9568a274e9?ds=inline;hp=-c Hintergrundjob-Validierung: 'keine Spec' als '* * * * *' behandeln --- e5f571cf1b7b61910b5f1b6f50188a9568a274e9 diff --git a/SL/DB/BackgroundJob.pm b/SL/DB/BackgroundJob.pm index ce1c3991d..b7b907bb7 100644 --- a/SL/DB/BackgroundJob.pm +++ b/SL/DB/BackgroundJob.pm @@ -90,7 +90,7 @@ sub validate { } 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.');