Merge branch 'hotfix/5.7.7'

This commit is contained in:
Yuri Kuznetsov
2019-10-29 10:34:25 +02:00
2 changed files with 7 additions and 1 deletions
@@ -186,6 +186,12 @@ class Base
$result['orderBy'] = 'LIST:' . $sortBy . ':' . implode(',', $list);
return;
}
} else {
if (strpos($sortBy, '.') === false && strpos($sortBy, ':') === false) {
if (!$this->getSeed()->hasAttribute($sortBy)) {
throw new Error("Order by non-existing field '{$sortBy}'.");
}
}
}
}
if (!$desc) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "espocrm",
"version": "5.7.6",
"version": "5.7.7",
"description": "",
"main": "index.php",
"repository": {