fix select manager order file field

This commit is contained in:
yuri
2017-05-02 11:27:27 +03:00
parent 635d5d9c6c
commit ee1af88f8d
@@ -130,7 +130,7 @@ class Base
$result['orderBy'] = $sortBy;
$type = $this->getMetadata()->get(['entityDefs', $this->getEntityType(), 'fields', $sortBy, 'type']);
if ($type === 'link') {
if (in_array($type, ['link', 'file', 'image'])) {
$result['orderBy'] .= 'Name';
} else if ($type === 'linkParent') {
$result['orderBy'] .= 'Type';