all comments are kept when after a second is flagged

This commit is contained in:
Julie Lenaerts 2022-01-21 16:47:02 +01:00
parent c736c2b5bb
commit fcf2ae364f

View File

@ -1099,6 +1099,10 @@ class AccompanyingPeriod implements
} }
if ($comment instanceof Comment) { if ($comment instanceof Comment) {
if (null !== $this->pinnedComment) {
$this->addComment($this->pinnedComment);
}
$this->addComment($comment); $this->addComment($comment);
} }