Skip to content

Commit

Permalink
Fix specifying destination id.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 7, 2014
1 parent d49bca5 commit af35837
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -1612,12 +1612,15 @@ public function moveMessage($folderid, array $ids, $newfolderid)
$folder_class = $parts;
$folder_id = null;
}

$move_res = array();
ob_start();
switch ($folder_class) {
case Horde_ActiveSync::CLASS_CALENDAR:
if ($res = $this->_connector->calendar_move()) {
$parts = $this->_parseFolderId($newfolderid);
if (is_array($parts)) {
$newfolderid = $parts[self::FOLDER_PART_ID];
}
if ($res = $this->_connector->calendar_move(array_pop($ids), $folder_id, $newfolderid)) {
$move_res[$res] = $res;
}
break;
Expand Down

0 comments on commit af35837

Please sign in to comment.