Merge branch 'hotfix/5.9.4' of https://github.com/espocrm/espocrm into hotfix/5.9.4

This commit is contained in:
Yuri Kuznetsov
2020-08-25 18:04:36 +03:00
+6 -1
View File
@@ -75,7 +75,7 @@ class Email extends \Espo\Core\SelectManagers\Base
$skipIndex = true;
}
$actualDatabaseType = $this->getConfig()->get('actualDatabaseType');
/*$actualDatabaseType = strtolower($this->getConfig()->get('actualDatabaseType'));
$actualDatabaseVersion = $this->getConfig()->get('actualDatabaseVersion');
if (
@@ -84,7 +84,12 @@ class Email extends \Espo\Core\SelectManagers\Base
$this->hasLinkJoined('teams', $result)
) {
$skipIndex = true;
}*/
if ($this->hasLinkJoined('teams', $result)) {
$skipIndex = true;
}
if (!$skipIndex) {
$result['useIndex'] = 'dateSent';
}