Fix moving of Kolab objects to other folders in cache (#2564)
This commit is contained in:
parent
76ad5e921e
commit
158fa06a3c
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue