email is replied fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user