Projects
Kolab:16:Testing:Candidate
kolab-syncroton
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 35
View file
kolab-syncroton.spec
Changed
@@ -37,7 +37,7 @@ %global upstream_version 2.4.2 Name: kolab-syncroton -Version: 2.4.2.9 +Version: 2.4.2.10 Release: 1%{?dist} Summary: ActiveSync for Kolab Groupware
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -kolab-syncroton (2.4.2.9-0~kolab1) unstable; urgency=low +kolab-syncroton (2.4.2.10-0~kolab1) unstable; urgency=low * Release version 2.4.2
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_data_calendar.php
Changed
@@ -391,8 +391,10 @@ $is_outlook = stripos($this->device->devicetype, 'outlook') !== false; $is_android = stripos($this->device->devicetype, 'android') !== false; - // check data validity - $this->check_event($data); + // check data validity (of a new event) + if (empty($event)) { + $this->check_event($data); + } if (!empty($event'start') && ($event'start' instanceof DateTime)) { $old_timezone = $event'start'->getTimezone(); @@ -429,6 +431,11 @@ $value = $data->$key; + // Skip ghosted (unset) properties, (but make sure 'changed' timestamp is reset) + if ($value === null && $name != 'changed') { + continue; + } + switch ($name) { case 'changed': $value = null; @@ -510,12 +517,27 @@ } // Organizer - if (!$is_exception && ($organizer_email = $data->organizerEmail)) { - $attendees = array( - 'role' => 'ORGANIZER', - 'name' => $data->organizerName, - 'email' => $organizer_email, - ); + if (!$is_exception) { + // Organizer specified + if ($organizer_email = $data->organizerEmail) { + $attendees = array( + 'role' => 'ORGANIZER', + 'name' => $data->organizerName, + 'email' => $organizer_email, + ); + } else if (!empty($event'attendees')) { + // Organizer not specified, use one from the original event if that's an update + foreach ($event'attendees' as $idx => $attendee) { + if (!empty($attendee'email') && !empty($attendee'role') && $attendee'role' == 'ORGANIZER') { + $organizer_email = $attendee'email'; + $attendees = array( + 'role' => 'ORGANIZER', + 'name' => $attendee'name' ?? '', + 'email' => $organizer_email, + ); + } + } + } } // Attendees
View file
kolab-syncroton.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-syncroton Binary: kolab-syncroton Architecture: all -Version: 1:2.4.2.9-1~kolab1 +Version: 1:2.4.2.10-1~kolab1 Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Homepage: http://www.kolab.org/
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
.