patch from Patrick Bihan-Faou to fix contact duplication

This commit is contained in:
Lars Kneschke 2007-10-10 07:21:00 +00:00
parent ebcb1ba793
commit df9ba564c2

View File

@ -110,6 +110,11 @@ class Horde_SyncML_Command_Sync extends Horde_Syncml_Command {
foreach($targets as $target)
{
$sync = $state->getSync($target);
$sync = $state->getSync($target);
// make sure that the state reflects what is currently being done
$state->_currentSourceURI = $sync->_sourceLocURI;
$state->_currentTargetURI = $sync->_targetLocURI;
$output->startElement($state->getURI(), 'Sync', $attrs);
$output->startElement($state->getURI(), 'CmdID', $attrs);