Skip to content

Commit

Permalink
Fix detecting proper folder type.
Browse files Browse the repository at this point in the history
Fixes sync breaking when attempting to move a non-email message
on certain clients (at least until we actually support doing this
in the various application APIs).
  • Loading branch information
mrubinsk committed Oct 6, 2014
1 parent f90da3a commit bc9e649
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -1599,8 +1599,18 @@ public function moveMessage($folderid, array $ids, $newfolderid)
$folderid,
implode(',', $ids),
$newfolderid));

$parts = $this->_parseFolderId($folderid);
if (is_array($parts)) {
$class = $parts[self::FOLDER_PART_CLASS];
$folder_id = $parts[self::FOLDER_PART_ID];
} else {
$class = $parts;
$folder_id = null;
}

ob_start();
switch ($folderid) {
switch ($folder_id) {
case self::APPOINTMENTS_FOLDER_UID:
case self::CONTACTS_FOLDER_UID:
case self::TASKS_FOLDER_UID:
Expand Down

0 comments on commit bc9e649

Please sign in to comment.