Commit 75a31b26 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-884 Fix GetHierarchy() to provide otherwise streamed properties to

MAPIProvider->GetFolder().

Released under the Affero GNU General Public License (AGPL) version 3.
parent d25536d7
......@@ -349,7 +349,8 @@ class BackendKopano implements IBackend, ISearchProvider {
foreach ($rows as $row) {
$mapifolder = mapi_msgstore_openentry($this->store, $row[PR_ENTRYID]);
$folder = $mapiprovider->GetFolder($mapifolder);
$folderprops = mapi_getprops($mapifolder, array(PR_DISPLAY_NAME, PR_PARENT_ENTRYID, PR_ENTRYID, PR_SOURCE_KEY, PR_PARENT_SOURCE_KEY, PR_CONTAINER_CLASS, PR_ATTR_HIDDEN, PR_EXTENDED_FOLDER_FLAGS));
$folder = $mapiprovider->GetFolder($folderprops);
if (isset($folder->parentid) && $folder->parentid != $rootfoldersourcekey)
$folders[] = $folder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment