Projects
Kolab:Winterfell
roundcubemail-plugins-kolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 34
View file
roundcubemail-plugins-kolab-3.3.tar.gz/plugins/calendar/calendar.php
Changed
@@ -1742,6 +1742,12 @@ foreach ((array)$event['attachments'] as $k => $attachment) { $event['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']); + + unset($event['attachments'][$k]['data'], $event['attachments'][$k]['content']); + + if (!$attachment['id']) { + $event['attachments'][$k]['id'] = $k; + } } // convert link URIs references into structs @@ -1892,7 +1898,19 @@ $rev = rcube_utils::get_input_value('_rev', rcube_utils::INPUT_GPC); $event = array('id' => $event_id, 'calendar' => $calendar, 'rev' => $rev); - $attachment = $this->driver->get_attachment($id, $event); + + if ($calendar == '--invitation--itip') { + $uid = rcube_utils::get_input_value('_uid', rcube_utils::INPUT_GPC); + $part = rcube_utils::get_input_value('_part', rcube_utils::INPUT_GPC); + $mbox = rcube_utils::get_input_value('_mbox', rcube_utils::INPUT_GPC); + + $event = $this->lib->mail_get_itip_object($mbox, $uid, $part, 'event'); + $attachment = $event['attachments'][$id]; + $attachment['body'] = &$attachment['data']; + } + else { + $attachment = $this->driver->get_attachment($id, $event); + } // show part page if (!empty($_GET['_frame'])) { @@ -1903,7 +1921,10 @@ } // deliver attachment content else if ($attachment) { - $attachment['body'] = $this->driver->get_attachment_body($id, $event); + if ($calendar != '--invitation--itip') { + $attachment['body'] = $this->driver->get_attachment_body($id, $event); + } + $this->lib->attachment_get($attachment); }
View file
roundcubemail-plugins-kolab-3.3.tar.gz/plugins/calendar/calendar_ui.js
Changed
@@ -335,6 +335,9 @@ if (event.rev) query._rev = event.rev; + if (event.calendar == "--invitation--itip") + $.extend(query, {_uid: event._uid, _part: event._part, _mbox: event._mbox}); + // open attachment in frame if it's of a supported mimetype if (id && att.mimetype && $.inArray(att.mimetype, settings.mimetypes)>=0) { if (rcmail.open_window(rcmail.url('get-attachment', query), true, true)) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.