diff --git a/application/Espo/Core/ORM/Entity.php b/application/Espo/Core/ORM/Entity.php index 9121beaa1d..36466cc7cd 100644 --- a/application/Espo/Core/ORM/Entity.php +++ b/application/Espo/Core/ORM/Entity.php @@ -147,7 +147,9 @@ class Entity extends \Espo\ORM\Entity } $this->set($idsAttribute, $ids); - $this->setFetched($idsAttribute, $ids); + if (!$this->hasFetched($idsAttribute)) { + $this->setFetched($idsAttribute, $ids); + } $this->set($field . 'Names', $names); if ($hasType) {