Fix caching configuration objects
This commit is contained in:
parent
43cf285391
commit
a9f8715248
1 changed files with 5 additions and 2 deletions
|
@ -761,12 +761,15 @@ class kolab_storage_cache
|
|||
}
|
||||
}
|
||||
|
||||
$object_type = $sql_arr['type'] ?: $this->folder->type;
|
||||
$format_type = $this->folder->type == 'configuration' ? 'configuration' : $object_type;
|
||||
|
||||
// add meta data
|
||||
$object['_type'] = $sql_arr['type'] ?: $this->folder->type;
|
||||
$object['_type'] = $object_type;
|
||||
$object['_msguid'] = $sql_arr['msguid'];
|
||||
$object['_mailbox'] = $this->folder->name;
|
||||
$object['_size'] = strlen($sql_arr['xml']);
|
||||
$object['_formatobj'] = kolab_format::factory($object['_type'], 3.0, $sql_arr['xml']);
|
||||
$object['_formatobj'] = kolab_format::factory($format_type, 3.0, $sql_arr['xml']);
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue