email is replied fix

This commit is contained in:
Yuri Kuznetsov
2024-12-18 13:09:41 +02:00
parent 41c5ac154f
commit 283f1eef81
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -909,4 +909,14 @@ class Email extends Entity
{
return $this->get('icsContents');
}
public function isReplied(): bool
{
return (bool) $this->get('isReplied');
}
public function setIsReplied(bool $isReplied = true): self
{
return $this->set('isReplied', $isReplied);
}
}
+2 -2
View File
@@ -522,9 +522,9 @@ class Email extends Database implements
if (
$replied &&
$replied->getId() !== $entity->getId() &&
!$replied->getReplied()
!$replied->isReplied()
) {
$replied->set('isReplied', true);
$replied->setIsReplied();
$this->entityManager->saveEntity($replied, [SaveOption::SILENT => true]);
}