Need to supply the mod time for ALL new entries, not just calendars.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 18:48:46 +0000 (14:48 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 18:48:46 +0000 (14:48 -0400)
New entries will not have an existing mod time in history, so need to supply
it here, for the purposes of remembering the time this change was made and
not mirroring it back to the PIM.

framework/ActiveSync/lib/Horde/ActiveSync/Driver/Horde.php

index cf1081f..2e6e769 100644 (file)
@@ -481,6 +481,7 @@ class Horde_ActiveSync_Driver_Horde extends Horde_ActiveSync_Driver_Base
                     return false;
                 }
                 $stat = $this->_smartStatMessage($folderid, $id, false);
+                $stat['mod'] = time();
             } else {
                 try {
                     $this->_connector->contacts_replace($id, $message);
@@ -500,8 +501,8 @@ class Horde_ActiveSync_Driver_Horde extends Horde_ActiveSync_Driver_Base
                     $this->_logger->err($e->getMessage());
                     return false;
                 }
-
                 $stat = $this->_smartStatMessage($folderid, $id, false);
+                $stat['mod'] = time();
             } else {
                 try {
                     $this->_connector->tasks_replace($id, $message);