Skip to content

EspoCRM – Open Source CRM Application

Remove mandatorySelectAttributeList

Yuriicca847934f0a
diff --git a/application/Espo/Core/Record/Service.php b/application/Espo/Core/Record/Service.php
index edb8f40b4e..4cfdb371df 100644
--- a/application/Espo/Core/Record/Service.php
+++ b/application/Espo/Core/Record/Service.php
@@ -131,13 +131,6 @@ class Service implements Crud,
private ?StreamService $streamService = null;
- /**
- * @var string[]
- * @deprecated As of v8.2. Use recordDefs > mandatoryAttributeList.
- * @todo Remove in v10.0. Fix usages.
- */
- protected $mandatorySelectAttributeList = [];
-
private ?ListLoadProcessor $listLoadProcessor = null;
private ?DuplicateFinder $duplicateFinder = null;
private ?LinkCheck $linkCheck = null;
@@ -1624,14 +1617,11 @@ class Service implements Crud,
/** @var string[] $mandatoryAttributeList */
$mandatoryAttributeList = $this->metadata->get("recordDefs.$this->entityType.mandatoryAttributeList") ?? [];
- /** @noinspection PhpDeprecationInspection */
- $mandatoryAttributeList = array_merge($this->mandatorySelectAttributeList, $mandatoryAttributeList);
if ($mandatoryAttributeList === []) {
return $searchParams;
}
- /** @noinspection PhpDeprecationInspection */
$select = array_unique(
array_merge(
$searchParams->getSelect(),