mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix replacing an initial comment in accompanying period
This commit is contained in:
@@ -394,9 +394,10 @@ class AccompanyingPeriod
|
||||
*/
|
||||
public function setInitialComment(?Comment $comment = null): self
|
||||
{
|
||||
if (NULL === $comment && NULL !== $this->initialComment) {
|
||||
if (NULL !== $this->initialComment) {
|
||||
$this->removeComment($this->initialComment);
|
||||
} elseif ($comment instanceof Comment) {
|
||||
}
|
||||
if ($comment instanceof Comment) {
|
||||
$this->addComment($comment);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user