From abc3caee00aee53323314370b6406d6be67b1896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 22 Apr 2022 11:40:29 +0200 Subject: [PATCH] AccompanyingPeriod: fix method hasPreviousUser --- src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php index bd3211c5d..ff26d7b20 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php @@ -975,7 +975,7 @@ class AccompanyingPeriod implements public function hasPreviousUser(): bool { - return null !== $this->userPrevious; + return $this->user !== $this->userPrevious; } /**