From 1659e583ea1018bf102def8e000c85cbf4bf2a0c Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 2 May 2017 11:27:27 +0300 Subject: [PATCH] fix select manager order file field --- application/Espo/Core/SelectManagers/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Core/SelectManagers/Base.php b/application/Espo/Core/SelectManagers/Base.php index e1b314b552..6d87191597 100644 --- a/application/Espo/Core/SelectManagers/Base.php +++ b/application/Espo/Core/SelectManagers/Base.php @@ -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';