diff --git a/application/Espo/Core/Record/Service.php b/application/Espo/Core/Record/Service.php index 07dc084efe..c8f3333495 100644 --- a/application/Espo/Core/Record/Service.php +++ b/application/Espo/Core/Record/Service.php @@ -124,6 +124,8 @@ class Service implements Crud, protected array $noEditAccessRequiredLinkList = []; /** @var array */ protected array $linkMandatorySelectAttributeList = []; + /** @var string[] */ + protected array $duplicatingLinkList = []; /** @var string[] */ protected $forbiddenAttributeList = []; @@ -148,12 +150,6 @@ class Service implements Crud, private ?StreamService $streamService = null; - /** @var string[] */ - protected $duplicatingLinkList = []; - /** @var ?string[] */ - protected $selectAttributeList = null; - - /** * @var bool * @todo Move to metadata. @@ -1871,10 +1867,6 @@ class Service implements Crud, return $searchParams->withSelect(null); } - if ($this->selectAttributeList) { - return $searchParams->withSelect($this->selectAttributeList); - } - if ($searchParams->getSelect() === null) { return $searchParams; } diff --git a/application/Espo/Modules/Crm/Services/TargetList.php b/application/Espo/Modules/Crm/Services/TargetList.php index f86a7e4016..0af26aa9b6 100644 --- a/application/Espo/Modules/Crm/Services/TargetList.php +++ b/application/Espo/Modules/Crm/Services/TargetList.php @@ -55,12 +55,9 @@ class TargetList extends Record implements use Di\HookManagerSetter; /** @var string[] */ - protected $targetLinkList = []; - protected array $noEditAccessRequiredLinkList = []; - protected $duplicatingLinkList = []; - + protected array $targetLinkList = []; /** @var array */ - protected $entityTypeLinkMap = []; + protected array $entityTypeLinkMap = []; public function setMetadata(Metadata $metadata): void {