Compare commits

..

2 Commits

Author SHA1 Message Date
Arnaud Fornerot 8211c08403 Merge branch 'master' into dist/envole/6/master 2019-12-16 17:20:11 +01:00
afornerot 9a0c9086d2 correction cron only 2019-12-16 17:20:06 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -90,11 +90,11 @@ class InitDataCommand extends ContainerAwareCommand
$entity = $this->entityManager->getRepository('CadolesCronBundle:Cron')->find(105); $entity = $this->entityManager->getRepository('CadolesCronBundle:Cron')->find(105);
if(!$entity&&$widonlyoffice_sync) { if(!$entity&&$widonlyoffice_sync) {
$entity = new Cron; $entity = new Cron;
$nextdate=$entity->getSubmitdate(); $nextdate=$entity->getSubmitdate();
$nextdate->setTime(3,0);
$entity->setCommand("Core:Only"); $entity->setCommand("Core:Only");
$entity->setDescription("Synchronisation des Only Office"); $entity->setDescription("Synchronisation des Only Office");
$entity->setId(105); $entity->setId(105);
$entity->setStatut(2);
$entity->setRepeatcall(0); $entity->setRepeatcall(0);
$entity->setRepeatexec(0); $entity->setRepeatexec(0);
$entity->setRepeatinterval(3600); $entity->setRepeatinterval(3600);