From 5eea202586de5c49098949c7fd88e9939f22b9ae Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 8 Apr 2022 19:04:13 +0200 Subject: [PATCH] fix adding sibling action --- src/Bundle/ChillActivityBundle/Entity/Activity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillActivityBundle/Entity/Activity.php b/src/Bundle/ChillActivityBundle/Entity/Activity.php index f157401a7..016c4b6fa 100644 --- a/src/Bundle/ChillActivityBundle/Entity/Activity.php +++ b/src/Bundle/ChillActivityBundle/Entity/Activity.php @@ -237,8 +237,9 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac dump($parent); $parentKey = array_search($parent, $this->socialActions->toArray()); + dump($parentKey); - if (null !== $parentKey) { + if (false !== $parentKey) { dump(true); $this->socialActions[$parentKey] = $socialAction; // return $this;