From 60ae87a3cba87c8ec9dd63df40adddd628e575e2 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 4 Mar 2020 14:16:21 +0200 Subject: [PATCH] fix orderById --- application/Espo/Core/SelectManagers/Base.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/Espo/Core/SelectManagers/Base.php b/application/Espo/Core/SelectManagers/Base.php index ce541e93fa..9a79380211 100644 --- a/application/Espo/Core/SelectManagers/Base.php +++ b/application/Espo/Core/SelectManagers/Base.php @@ -203,6 +203,8 @@ class Base } if ( + $sortBy != 'id' + && $this->getMetadata()->get(['entityDefs', $this->getEntityType(), 'fields', $sortBy, 'orderById']) && $this->getSeed()->hasAttribute('id')