link additional select params

This commit is contained in:
yuri
2019-06-26 12:06:30 +03:00
parent 30be62eabe
commit c64cc13e4c
+5
View File
@@ -1318,6 +1318,11 @@ class Record extends \Espo\Core\Services\Base
$selectParams = array_merge($selectParams, $this->linkSelectParams[$link]);
}
$additionalSelectParams = $this->getMetadata()->get(['entityDefs', $this->entityType, 'links', $link, 'selectParams']);
if ($additionalSelectParams) {
$selectParams = array_merge($selectParams, $additionalSelectParams);
}
$selectParams['maxTextColumnsLength'] = $recordService->getMaxSelectTextAttributeLength();
$selectAttributeList = $recordService->getSelectAttributeList($params);