From 3be8a39a1ac66659d4b6d37bad7f28a7cb94d326 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 30 Jan 2024 17:03:24 +0100 Subject: [PATCH] Add at_date to userRender for rendering the text --- .../ChillMainBundle/Serializer/Normalizer/UserNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php index 2e1441614..80363871a 100644 --- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php +++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php @@ -81,7 +81,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware 'type' => 'user', 'id' => $object->getId(), 'username' => $object->getUsername(), - 'text' => $this->userRender->renderString($object, []), + 'text' => $this->userRender->renderString($object, ['at_date' => $at]), 'text_without_absent' => $this->userRender->renderString($object, ['absence' => false]), 'label' => $object->getLabel(), 'email' => (string) $object->getEmail(),