global search fix

This commit is contained in:
yuri
2016-04-20 10:32:05 +03:00
parent 2d06e8a801
commit 4a0aa1bca0
@@ -74,6 +74,9 @@ class GlobalSearch extends \Espo\Core\Services\Base
if (!$this->getAcl()->checkScope($entityType, 'read')) {
continue;
}
if (!$this->getMetadata()->get('scopes.' . $entityType)) {
continue;
}
$params = array(
'select' => ['id', 'name', ['VALUE:' . $entityType, 'entityType']]
);