mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
in period notification, handle case when period referrer is null
This commit is contained in:
parent
aebb21935b
commit
c2c5bec0e5
@ -60,6 +60,7 @@ class UserRefEventSubscriber implements EventSubscriberInterface
|
|||||||
{
|
{
|
||||||
if ($period->hasPreviousUser()
|
if ($period->hasPreviousUser()
|
||||||
&& $period->getUser() !== $this->security->getUser()
|
&& $period->getUser() !== $this->security->getUser()
|
||||||
|
&& null !== $period->getUser()
|
||||||
&& $period->getStep() !== AccompanyingPeriod::STEP_DRAFT
|
&& $period->getStep() !== AccompanyingPeriod::STEP_DRAFT
|
||||||
) {
|
) {
|
||||||
$this->generateNotificationToUser($period);
|
$this->generateNotificationToUser($period);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user