in period notification, handle case when period referrer is null

This commit is contained in:
Julien Fastré 2022-02-17 21:08:55 +01:00
parent aebb21935b
commit c2c5bec0e5

View File

@ -60,6 +60,7 @@ class UserRefEventSubscriber implements EventSubscriberInterface
{
if ($period->hasPreviousUser()
&& $period->getUser() !== $this->security->getUser()
&& null !== $period->getUser()
&& $period->getStep() !== AccompanyingPeriod::STEP_DRAFT
) {
$this->generateNotificationToUser($period);