Commit 5055590c authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #201 in ZP/z-push from...

Merge pull request #201 in ZP/z-push from bugfix/ZP-855-searched-and-found-message-can-not to develop

* commit 'b0221f6c':
  ZP-855 Searched and found message can not be deleted (iOS).
parents ddf54b20 b0221f6c
...@@ -1208,7 +1208,7 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -1208,7 +1208,7 @@ class BackendZarafa implements IBackend, ISearchProvider {
$items["range"] = $cpo->GetSearchRange(); $items["range"] = $cpo->GetSearchRange();
for ($i = 0; $i < $cnt; $i++) { for ($i = 0; $i < $cnt; $i++) {
$items[$i]['class'] = 'Email'; $items[$i]['class'] = 'Email';
$items[$i]['longid'] = bin2hex($rows[$i][PR_PARENT_SOURCE_KEY]) . ":" . bin2hex($rows[$i][PR_SOURCE_KEY]); $items[$i]['longid'] = ZPush::GetDeviceManager()->GetFolderIdForBackendId(bin2hex($rows[$i][PR_PARENT_SOURCE_KEY])) . ":" . bin2hex($rows[$i][PR_SOURCE_KEY]);
$items[$i]['folderid'] = bin2hex($rows[$i][PR_PARENT_SOURCE_KEY]); $items[$i]['folderid'] = bin2hex($rows[$i][PR_PARENT_SOURCE_KEY]);
} }
return $items; return $items;
......
...@@ -293,7 +293,7 @@ class ItemOperations extends RequestProcessor { ...@@ -293,7 +293,7 @@ class ItemOperations extends RequestProcessor {
else if (isset($operation['longid'])) { else if (isset($operation['longid'])) {
self::$topCollector->AnnounceInformation("Fetching data from backend with long id"); self::$topCollector->AnnounceInformation("Fetching data from backend with long id");
$tmp = explode(":", $operation['longid']); $tmp = explode(":", $operation['longid']);
$data = self::$backend->Fetch($tmp[0], $tmp[1], $operation["cpo"]); $data = self::$backend->Fetch(self::$deviceManager->GetBackendIdForFolderId($tmp[0]), $tmp[1], $operation["cpo"]);
} }
} }
catch (StatusException $stex) { catch (StatusException $stex) {
......
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