Skip to content

Commit

Permalink
Indicate we need a FOLDERSYNC if a backend id isn't found.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 28, 2015
1 parent 262d84d commit 7a2b22e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php
Expand Up @@ -920,7 +920,13 @@ protected function _parseSyncCommands(&$collection)
$collection['class'] = $this->_collections->getCollectionClass($collection['id']);
}
if (empty($collection['serverid'])) {
$collection['serverid'] = $this->_collections->getBackendIdForFolderUid($collection['id']);
try {
$collection['serverid'] = $this->_collections->getBackendIdForFolderUid($collection['id']);
} catch (Horde_ActiveSync_Exception $e) {
$this->_statusCode = self::STATUS_FOLDERSYNC_REQUIRED;
$this->_handleError($colleciton);
return false;
}
}

try {
Expand Down

0 comments on commit 7a2b22e

Please sign in to comment.