From e5f571cf1b7b61910b5f1b6f50188a9568a274e9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 30 Aug 2012 09:49:16 +0200 Subject: [PATCH] Hintergrundjob-Validierung: 'keine Spec' als '* * * * *' behandeln --- SL/DB/BackgroundJob.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); -- 2.20.1