From 404336df40f8731f4584e8f45277998825259c52 Mon Sep 17 00:00:00 2001 From: Dimitri Date: Mon, 13 Jan 2025 09:49:26 +0100 Subject: [PATCH] [Bot] escape warning on Primo notification (#11298) --- .../SendNewPrimoCotisationNotificationCommandHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adhesion/Handler/SendNewPrimoCotisationNotificationCommandHandler.php b/src/Adhesion/Handler/SendNewPrimoCotisationNotificationCommandHandler.php index 26032f0742..18446b8f95 100644 --- a/src/Adhesion/Handler/SendNewPrimoCotisationNotificationCommandHandler.php +++ b/src/Adhesion/Handler/SendNewPrimoCotisationNotificationCommandHandler.php @@ -78,7 +78,7 @@ public function __invoke(SendNewPrimoCotisationNotificationCommand $command): vo $zoneLines = StringCleaner::escapeMarkdown(implode("\n", $zoneLines)); if (!$committeeMembership) { - $zoneLines = "\n_".(($committeesInAdherentZone = \count($this->committeeRepository->findInAdherentZone($adherent))) ? $committeesInAdherentZone.' comité(s) dans l\'Assemblée' : 'Aucun comité dans l\'Assemblée').'_'; + $zoneLines = "\n_".(($committeesInAdherentZone = \count($this->committeeRepository->findInAdherentZone($adherent))) ? $committeesInAdherentZone.' comité\(s\) dans l\'Assemblée' : 'Aucun comité dans l\'Assemblée').'_'; } $smsSubscriber = $adherent->hasSmsSubscriptionType() ? '✅' : '❌';