EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
rename const
Yurii0b577b3878e6
diff --git a/application/Espo/Classes/AssignmentNotificators/Email.php b/application/Espo/Classes/AssignmentNotificators/Email.phpindex c99b499102..dca2952d54 100644--- a/application/Espo/Classes/AssignmentNotificators/Email.php+++ b/application/Espo/Classes/AssignmentNotificators/Email.php@@ -166,9 +166,9 @@ class Email implements AssignmentNotificator]);if ($person) {- $data[Note::DATA_ATTR_PERSON_ENTITY_TYPE] = $person->getEntityType();- $data[Note::DATA_ATTR_PERSON_ENTITY_NAME] = $person->get(Field::NAME);- $data[Note::DATA_ATTR_PERSON_ENTITY_ID] = $person->getId();+ $data[Note::DATA_ATTR_PERSON_TYPE] = $person->getEntityType();+ $data[Note::DATA_ATTR_PERSON_NAME] = $person->get(Field::NAME);+ $data[Note::DATA_ATTR_PERSON_ID] = $person->getId();}}@@ -178,7 +178,7 @@ class Email implements AssignmentNotificator$userIdFrom = $person->getId();}- if (empty($data[Note::DATA_ATTR_PERSON_ENTITY_ID])) {+ if (empty($data[Note::DATA_ATTR_PERSON_ID])) {$data[Note::DATA_ATTR_FROM_STRING] = Util::parseFromName($entity->getFromString() ?? '');if (empty($data[Note::DATA_ATTR_FROM_STRING]) && $from) {diff --git a/application/Espo/Entities/Note.php b/application/Espo/Entities/Note.phpindex 7aa986e353..0f222b7d3e 100644--- a/application/Espo/Entities/Note.php+++ b/application/Espo/Entities/Note.php@@ -74,9 +74,9 @@ class Note extends Entitypublic const string DATA_ATTR_ASSIGNED_USER_NAME = 'assignedUserName';public const string DATA_ATTR_FIELDS = 'fields';public const string DATA_ATTR_ATTRIBUTES = 'attributes';- public const string DATA_ATTR_PERSON_ENTITY_TYPE = 'personEntityType';- public const string DATA_ATTR_PERSON_ENTITY_NAME = 'personEntityName';- public const string DATA_ATTR_PERSON_ENTITY_ID = 'personEntityId';+ public const string DATA_ATTR_PERSON_TYPE = 'personEntityType';+ public const string DATA_ATTR_PERSON_NAME = 'personEntityName';+ public const string DATA_ATTR_PERSON_ID = 'personEntityId';public const string DATA_ATTR_FROM_STRING = 'fromString';public const string FIELD_TYPE = 'type';diff --git a/application/Espo/Tools/Stream/Service.php b/application/Espo/Tools/Stream/Service.phpindex 18b7815326..58f96f1ae3 100644--- a/application/Espo/Tools/Stream/Service.php+++ b/application/Espo/Tools/Stream/Service.php@@ -500,9 +500,9 @@ class Service$person = $this->getEmailAddressRepository()->getEntityByAddress($from);if ($person) {- $data[Note::DATA_ATTR_PERSON_ENTITY_TYPE] = $person->getEntityType();- $data[Note::DATA_ATTR_PERSON_ENTITY_NAME] = $person->get(Field::NAME);- $data[Note::DATA_ATTR_PERSON_ENTITY_ID] = $person->getId();+ $data[Note::DATA_ATTR_PERSON_TYPE] = $person->getEntityType();+ $data[Note::DATA_ATTR_PERSON_NAME] = $person->get(Field::NAME);+ $data[Note::DATA_ATTR_PERSON_ID] = $person->getId();if (!$isInitial &&@@ -566,9 +566,9 @@ class Service}if ($person) {- $data[Note::DATA_ATTR_PERSON_ENTITY_TYPE] = $person->getEntityType();- $data[Note::DATA_ATTR_PERSON_ENTITY_NAME] = $person->get(Field::NAME);- $data[Note::DATA_ATTR_PERSON_ENTITY_ID] = $person->getId();+ $data[Note::DATA_ATTR_PERSON_TYPE] = $person->getEntityType();+ $data[Note::DATA_ATTR_PERSON_NAME] = $person->get(Field::NAME);+ $data[Note::DATA_ATTR_PERSON_ID] = $person->getId();}$note->setData($data);