Fix caching configuration objects

This commit is contained in:
Aleksander Machniak 2014-07-30 10:53:30 -04:00
parent 43cf285391
commit a9f8715248

View file

@ -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;
}