Skip to content

EspoCRM – Open Source CRM Application

rename

Yuri Kuznetsov5c7d603899cd
diff --git a/application/Espo/Entities/Email.php b/application/Espo/Entities/Email.php
index 521478b195..0e61bdf50f 100644
--- a/application/Espo/Entities/Email.php
+++ b/application/Espo/Entities/Email.php
@@ -210,7 +210,7 @@ class Email extends Entity
/**
* @since 9.0.0
*/
- public function getBodyPlainWithReplyPart(): ?string
+ public function getBodyPlainWithoutReplyPart(): ?string
{
$body = $this->getBodyPlain();
diff --git a/application/Espo/Tools/Stream/Service.php b/application/Espo/Tools/Stream/Service.php
index b7297bf26f..3e488e2f35 100644
--- a/application/Espo/Tools/Stream/Service.php
+++ b/application/Espo/Tools/Stream/Service.php
@@ -543,7 +543,7 @@ class Service
$withContent = $this->toStoreEmailContent($entityType);
if ($withContent) {
- $note->setPost($email->getBodyPlainWithReplyPart());
+ $note->setPost($email->getBodyPlainWithoutReplyPart());
$data['attachmentsIds'] = $email->getAttachmentIdList();
}
@@ -600,7 +600,7 @@ class Service
$withContent = $this->toStoreEmailContent($entityType);
if ($withContent) {
- $note->setPost($email->getBodyPlainWithReplyPart());
+ $note->setPost($email->getBodyPlainWithoutReplyPart());
$data['attachmentsIds'] = $email->getAttachmentIdList();
}
diff --git a/tests/unit/Espo/Entities/EmailTest.php b/tests/unit/Espo/Entities/EmailTest.php
index 604b998fa5..6d2d6b82cd 100644
--- a/tests/unit/Espo/Entities/EmailTest.php
+++ b/tests/unit/Espo/Entities/EmailTest.php
@@ -491,7 +491,7 @@ class EmailTest extends \PHPUnit\Framework\TestCase
$expected = "Test\r\nHello";
- $this->assertEquals($expected, $this->email->getBodyPlainWithReplyPart());
+ $this->assertEquals($expected, $this->email->getBodyPlainWithoutReplyPart());
}
public function testSubjectBody(): void