make sure we fetch users from sql
[tine20] / tine20 / Tinebase / Model / Filter / Container.php
index ebdf540..0316146 100644 (file)
@@ -169,7 +169,7 @@ class Tinebase_Model_Filter_Container extends Tinebase_Model_Filter_Abstract imp
                     $containerData = array_merge($containerData, Tinebase_Container::getInstance()->getContainerById($containerId, TRUE)->toArray());
                 } else if (($ownerId = Tinebase_Model_Container::pathIsPersonalNode($path))) {
                     // transform current user 
                     $containerData = array_merge($containerData, Tinebase_Container::getInstance()->getContainerById($containerId, TRUE)->toArray());
                 } else if (($ownerId = Tinebase_Model_Container::pathIsPersonalNode($path))) {
                     // transform current user 
-                    $owner = Tinebase_User::getInstance()->getUserById($ownerId);
+                    $owner = Tinebase_User::getInstance()->getUserByPropertyFromSqlBackend('accountId', $ownerId);
                     $containerData['name']  = $owner->accountDisplayName;
                     $containerData['path']  = "/personal/$ownerId";
                     $containerData['owner'] = $owner->toArray();
                     $containerData['name']  = $owner->accountDisplayName;
                     $containerData['path']  = "/personal/$ownerId";
                     $containerData['owner'] = $owner->toArray();