From fc26a7ba7bdc057ba1397a0b1bd615f92485d06d Mon Sep 17 00:00:00 2001 From: Nathan Boiron Date: Mon, 2 Mar 2026 00:28:21 +0100 Subject: [PATCH] Correction de l'affichage du bloc des CFP sur la home de l'admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La condition était mauvaise et affichait le bloc trop longtemps. --- sources/AppBundle/Controller/Admin/HomeAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/AppBundle/Controller/Admin/HomeAction.php b/sources/AppBundle/Controller/Admin/HomeAction.php index 69a43197d..4ebf1d355 100644 --- a/sources/AppBundle/Controller/Admin/HomeAction.php +++ b/sources/AppBundle/Controller/Admin/HomeAction.php @@ -79,7 +79,7 @@ public function __invoke(): Response // Les stats du CFP sont affichés pendant un certain temps après la date de fin de l'appel $dateEndCallForPapers = $event->getDateEndCallForPapers(); - if ($dateEndCallForPapers && $dateEndCallForPapers < $this->clock->now()->add(new \DateInterval('P3M'))) { + if ($dateEndCallForPapers && $dateEndCallForPapers->add(new \DateInterval('P2M')) > $this->clock->now()) { $cfp['statistics'][$event->getTitle()] = [ [ 'icon' => 'microphone',