Commit 8ecd7fb9 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajustement à l'évolution de unicaen-parametre

parent 87d99a0f
Loading
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -9943,14 +9943,13 @@
        },
        {
            "name": "unicaen/parametre",
            "version": "5.0.0",
            "version": "5.0.1",
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/parametre.git",
                "reference": "04311ff04b56bda07cb67eeed3d0757f0e50027a"
                "reference": "5ee55b27320ded72c7e18fdcc18086867343dbd8"
            },
            "require": {
                "unicaen/app": "^5",
                "unicaen/privilege": "^5"
            },
            "type": "library",
@@ -9961,7 +9960,7 @@
                ]
            },
            "description": "Module de gestion de paramètres",
            "time": "2022-07-21T08:58:12+00:00"
            "time": "2023-03-03T10:09:58+00:00"
        },
        {
            "name": "unicaen/pdf",
+1 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ class EnqueteQuestionController extends AbstractController {

        $categories = $this->getEntityManager()->getRepository(EnqueteCategorie::class)->findAll();

        $delai = $this->getParametreService()->getParametreByCode(FormationParametres::CATEGORIE, FormationParametres::DELAI_ENQUETE)->getValeur();
        $delai = $this->getParametreService()->getValeurForParametre(FormationParametres::CATEGORIE, FormationParametres::DELAI_ENQUETE);
        $date = DateTime::createFromFormat('d/m/Y', $inscription->getSession()->getDateFin()->format('d/m/Y'));
        $date->add(new DateInterval('P'.$delai.'D'));

+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class IndexController extends AbstractController
            'ouvertes' => $ouvertes,
            'preparations' => $preparations,
            'inscriptions' => $inscriptions,
            'delai' => $this->getParametreService()->getParametreByCode(FormationParametres::CATEGORIE, FormationParametres::DELAI_ENQUETE)->getValeur(),
            'delai' => $this->getParametreService()->getValeurForParametre(FormationParametres::CATEGORIE, FormationParametres::DELAI_ENQUETE),
        ]);
    }

+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class AbstractRechercheController extends AbstractController implements SearchCo
            'paginator' => $paginator,
            'routeName' => $this->routeName,
            'returnUrl' => $this->getRequest()->getRequestUri(),
            'delai' => $this->getParametreService()?$this->getParametreService()->getParametreByCode(FormationParametres::CATEGORIE, FormationParametres::DELAI_ENQUETE)->getValeur():null,
            'delai' => $this->getParametreService()?$this->getParametreService()->getValeurForParametre(FormationParametres::CATEGORIE, FormationParametres::DELAI_ENQUETE):null,
        ]);
        $model->setTemplate($this->indexActionTemplate);

+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class InterventionAssertion implements AssertionInterface
        $proposition = $this->getPropositionService()->findOneForThese($these);
        $date_soutenance = ($these->getDateSoutenance())?$these->getDateSoutenance():$proposition->getDate();

        $interval = $this->getParametreService()->getParametreByCode(SoutenanceParametres::CATEGORIE, SoutenanceParametres::DELAI_INTERVENTION)->getValeur();
        $interval = $this->getParametreService()->getValeurForParametre(SoutenanceParametres::CATEGORIE, SoutenanceParametres::DELAI_INTERVENTION);
        $mini = (new DateTime())->sub(new DateInterval('P'.$interval.'D'));
        $maxi = (new DateTime())->add(new DateInterval('P'.$interval.'D'));

Loading