Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Wed Nov 20 17:19:43 CET 2013


 plugins/libkolab/lib/kolab_storage_cache.php |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit dbe4c952e7f02ff845b506f5cca94252e444c788
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Wed Nov 20 17:17:31 2013 +0100

    Fix moving of Kolab objects to other folders in cache (#2564)

diff --git a/plugins/libkolab/lib/kolab_storage_cache.php b/plugins/libkolab/lib/kolab_storage_cache.php
index 6ae2226..49f63b2 100644
--- a/plugins/libkolab/lib/kolab_storage_cache.php
+++ b/plugins/libkolab/lib/kolab_storage_cache.php
@@ -117,6 +117,15 @@ class kolab_storage_cache
     }
 
     /**
+     * Getter for the numeric ID used in cache tables
+     */
+    public function get_folder_id()
+    {
+        $this->_read_folder_data();
+        return $this->folder_id;
+    }
+
+    /**
      * Synchronize local cache data with remote
      */
     public function synchronize()
@@ -341,7 +350,7 @@ class kolab_storage_cache
             $this->db->query(
                 "UPDATE $this->cache_table SET folder_id=?, msguid=? ".
                 "WHERE folder_id=? AND msguid=?",
-                $target->folder_id,
+                $target->cache->get_folder_id(),
                 $new_msguid,
                 $this->folder_id,
                 $msguid




More information about the commits mailing list