Commit f96e93ee authored by Thomas Bruederli's avatar Thomas Bruederli

Fix loading attachments from old revisions

parent c33c964b
......@@ -717,8 +717,9 @@ class tasklist_kolab_driver extends tasklist_driver
$format->get_attachments($rec, true);
if ($format->is_valid()) {
$rec = self::_to_rcube_task($rec, $list_id, false);
$rec['rev'] = $result['rev'];
return self::_to_rcube_task($rec, $list_id, false);
return $rec;
}
}
......
......@@ -2575,7 +2575,7 @@ function rcube_tasklist_ui(settings)
var query = { _id: att.id, _t: rec.recurrence_id||rec.id, _list:rec.list, _frame: 1 };
if (rec.rev)
query._rev = event.rev;
query._rev = rec.rev;
// open attachment in frame if it's of a supported mimetype
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment