From df9ba564c24250f612c3c0ca2a871d5549aff182 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Wed, 10 Oct 2007 07:21:00 +0000 Subject: [PATCH] patch from Patrick Bihan-Faou to fix contact duplication --- phpgwapi/inc/horde/Horde/SyncML/Command/Sync.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/horde/Horde/SyncML/Command/Sync.php b/phpgwapi/inc/horde/Horde/SyncML/Command/Sync.php index 0aeca15732..cd99476aa2 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/Command/Sync.php +++ b/phpgwapi/inc/horde/Horde/SyncML/Command/Sync.php @@ -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);