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

This commit is contained in:
Thomas Bruederli 2013-11-20 17:17:31 +01:00
parent 76ad5e921e
commit 158fa06a3c

View file

@ -116,6 +116,15 @@ class kolab_storage_cache
return in_array('type', $this->extra_cols);
}
/**
* 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
*/
@ -349,7 +358,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