EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Duplicate where builder fix update email/phone
Yuriia803ffa4ca0c
diff --git a/application/Espo/Classes/DuplicateWhereBuilders/General.php b/application/Espo/Classes/DuplicateWhereBuilders/General.phpindex 2619fc0e02..245dcc1f78 100644--- a/application/Espo/Classes/DuplicateWhereBuilders/General.php+++ b/application/Espo/Classes/DuplicateWhereBuilders/General.php@@ -238,7 +238,7 @@ class General implements WhereBuilder*/private function getEmailAddressList(CoreEntity $entity): array{- if ($entity->get('emailAddressData')) {+ if ($entity->get('emailAddressData') && $entity->isAttributeChanged('emailAddressData')) {/** @var EmailAddressGroup $eaGroup */$eaGroup = $entity->getValueObject('emailAddress');@@ -259,7 +259,7 @@ class General implements WhereBuilder*/private function getPhoneNumberList(CoreEntity $entity): array{- if ($entity->get('phoneNumberData')) {+ if ($entity->get('phoneNumberData') && $entity->isAttributeChanged('phoneNumberData')) {/** @var PhoneNumberGroup $eaGroup */$eaGroup = $entity->getValueObject('phoneNumber');