Commit 36c3a231 authored by Roman Ondráček's avatar Roman Ondráček

Config: fix scheduler's task validation

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 8bb994b6
Pipeline #2290 passed with stages
in 14 minutes and 10 seconds
......@@ -174,7 +174,8 @@ class SchedulerFormFactory {
$timeSpec->addText('cronTime', self::PREFIX . 'timeSpec.cronTime');
$timeSpec->addCheckbox('exactTime', self::PREFIX . 'timeSpec.exactTime');
$timeSpec->addCheckbox('periodic', self::PREFIX . 'timeSpec.periodic');
$timeSpec->addInteger('period', self::PREFIX . 'timeSpec.period');
$timeSpec->addInteger('period', self::PREFIX . 'timeSpec.period')
->setDefaultValue(0);
$timeSpec->addText('startTime', self::PREFIX . 'timeSpec.startTime')
->setHtmlType('datetime-local');
$timeSpec['period']
......
......@@ -253,8 +253,8 @@ class SchedulerManager {
unset($task->message->data->timeout);
}
}
$this->schemaManager->validate($config);
$this->timeManager->cronToArray($config);
$this->schemaManager->validate($config);
$this->fileManager->write($this->fileName, $config);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment