global search

This commit is contained in:
Yuri Kuznetsov
2014-02-05 17:04:36 +02:00
parent 6612910471
commit fa888b015d
14 changed files with 225 additions and 34 deletions

View File

@@ -52,6 +52,7 @@ class Preferences extends \Espo\Core\Controllers\Base
$this->handleUserAccess($userId);
$entity = $this->getEntityManager()->getEntity('Preferences', $userId);
$entity->set('name', $this->getUser()->get('name'));
if ($entity) {
return $entity->toArray();
}