Skip to content

Commit 6e9fe98

Browse files
authored
Correction de l'affichage du bloc des CFP sur la home de l'admin (#2152)
La condition était mauvaise et affichait le bloc trop longtemps.
1 parent a03c493 commit 6e9fe98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/AppBundle/Controller/Admin/HomeAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __invoke(): Response
7979

8080
// Les stats du CFP sont affichés pendant un certain temps après la date de fin de l'appel
8181
$dateEndCallForPapers = $event->getDateEndCallForPapers();
82-
if ($dateEndCallForPapers && $dateEndCallForPapers < $this->clock->now()->add(new \DateInterval('P3M'))) {
82+
if ($dateEndCallForPapers && $dateEndCallForPapers->add(new \DateInterval('P2M')) > $this->clock->now()) {
8383
$cfp['statistics'][$event->getTitle()] = [
8484
[
8585
'icon' => 'microphone',

0 commit comments

Comments
 (0)