Skip to content

EspoCRM – Open Source CRM Application

Ref

Yurii1ead7ca15728
diff --git a/application/Espo/Modules/Crm/Tools/TargetList/OptOutService.php b/application/Espo/Modules/Crm/Tools/TargetList/OptOutService.php
index 88c215c0cc..f2c78b9f75 100644
--- a/application/Espo/Modules/Crm/Tools/TargetList/OptOutService.php
+++ b/application/Espo/Modules/Crm/Tools/TargetList/OptOutService.php
@@ -190,7 +190,7 @@ class OptOutService
while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
$itemEntity = $this->entityManager->getNewEntity($row['entityType']);
- $itemEntity->set($row);
+ $itemEntity->setMultiple($row);
$itemEntity->setAsFetched();
$collection[] = $itemEntity;