Commit a17ade91 authored by mku's avatar mku

ZP-49 #comment take recursive flag into account #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1308 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 98ee5504
......@@ -1150,8 +1150,13 @@ class BackendZarafa implements IBackend, ISearchProvider {
$searchFolders[] = $tmp[PR_IPM_SUBTREE_ENTRYID];
}
$items = array();
$flags = 0;
// if subfolders are required, do a recursive search
if ($cpo->GetSearchDeepTraversal()) {
$flags |= SEARCH_RECURSIVE;
}
mapi_folder_setsearchcriteria($searchFolder, $searchRestriction, $searchFolders, RECURSIVE_SEARCH);
mapi_folder_setsearchcriteria($searchFolder, $searchRestriction, $searchFolders, $flags);
$table = mapi_folder_getcontentstable($searchFolder);
$searchStart = time();
......
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