mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 07:26:05 +00:00
Merge branch 'hotfix/5.8.4'
This commit is contained in:
@@ -2694,9 +2694,9 @@ class Base
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($params['orderBy'])) {
|
||||
$sortByField = $params['orderBy'];
|
||||
$sortByField = $params['orderBy'] ?? $this->getMetadata()->get(['entityDefs', $this->entityType, 'collection', 'orderBy']);
|
||||
|
||||
if ($sortByField) {
|
||||
$sortByAttributeList = $this->getFieldManagerUtil()->getAttributeList($this->getEntityType(), $sortByField);
|
||||
foreach ($sortByAttributeList as $attribute) {
|
||||
if (!in_array($attribute, $attributeList) && $seed->hasAttribute($attribute)) {
|
||||
|
||||
Reference in New Issue
Block a user