diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php b/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php index 6a82818f6..882b9f4fa 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php @@ -61,7 +61,7 @@ class PickCenterType extends AbstractType { $centers = $this->getReachableCenters($options['role'], $options['scopes']); - $centersActive = array_filter($centers, fn(Center $c) => $c->getIsActive()); + $centersActive = array_filter($centers, fn (Center $c) => $c->getIsActive()); if (count($centers) <= 1) { $multiple = $options['choice_options']['multiple'] ?? false; diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php index 896c1a79d..0ca3bd94a 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php @@ -53,10 +53,10 @@ class PersonApiController extends ApiController { $centers = $this->authorizedCenterOnPersonCreation->getCenters(); - $centersActive = array_filter($centers, fn(Center $c) => $c->getIsActive()); + // $centersActive = array_filter($centers, fn(Center $c) => $c->getIsActive()); return $this->json( - ['showCenters' => $this->showCenters, 'centers' => $centersActive], + ['showCenters' => $this->showCenters, 'centers' => $centers], Response::HTTP_OK, [], ['groups' => ['read']]