From 9a0c9086d2cdd95ddf98b7bb364f3c2b81bebbc6 Mon Sep 17 00:00:00 2001 From: afornerot Date: Mon, 16 Dec 2019 17:20:06 +0100 Subject: [PATCH] correction cron only --- .../src/Cadoles/CronBundle/Command/InitDataCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ninegate-1.0/src/Cadoles/CronBundle/Command/InitDataCommand.php b/src/ninegate-1.0/src/Cadoles/CronBundle/Command/InitDataCommand.php index 592d3fca..aae59ba2 100644 --- a/src/ninegate-1.0/src/Cadoles/CronBundle/Command/InitDataCommand.php +++ b/src/ninegate-1.0/src/Cadoles/CronBundle/Command/InitDataCommand.php @@ -90,11 +90,11 @@ class InitDataCommand extends ContainerAwareCommand $entity = $this->entityManager->getRepository('CadolesCronBundle:Cron')->find(105); if(!$entity&&$widonlyoffice_sync) { $entity = new Cron; - $nextdate=$entity->getSubmitdate(); - $nextdate->setTime(3,0); + $nextdate=$entity->getSubmitdate(); $entity->setCommand("Core:Only"); $entity->setDescription("Synchronisation des Only Office"); $entity->setId(105); + $entity->setStatut(2); $entity->setRepeatcall(0); $entity->setRepeatexec(0); $entity->setRepeatinterval(3600);