ajout thème rnb

This commit is contained in:
Tykayn 2025-07-15 21:22:02 +02:00 committed by tykayn
parent 3d767ffaae
commit aae37c6ce0
9 changed files with 119 additions and 26 deletions

View file

@ -649,8 +649,8 @@ class PublicController extends AbstractController
public function publicFollowupGraph(string $insee_code, string $theme): Response
{
$stats = $this->entityManager->getRepository(Stats::class)->findOneBy(['zone' => $insee_code]);
if (!$stats) {
$this->addFlash('error', 'Aucune stats trouvée pour ce code INSEE.');
if (!$stats) {
$this->addFlash('error', '13 Aucune stats trouvée pour ce code INSEE.');
return $this->redirectToRoute('app_public_index');
}