From fcf2ae364f54969ed7cc04ff35079da033e1a38d Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 21 Jan 2022 16:47:02 +0100 Subject: [PATCH] all comments are kept when after a second is flagged --- src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php index 06e4f0c8b..ac39f2461 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php @@ -1099,6 +1099,10 @@ class AccompanyingPeriod implements } if ($comment instanceof Comment) { + + if (null !== $this->pinnedComment) { + $this->addComment($this->pinnedComment); + } $this->addComment($comment); }