Small fix for task assignment exchange via iTip
This commit is contained in:
parent
b41f2a05cb
commit
75cf17866c
2 changed files with 8 additions and 2 deletions
|
@ -1064,10 +1064,10 @@ class tasklist_kolab_driver extends tasklist_driver
|
|||
}
|
||||
|
||||
// allow sequence increments if I'm the organizer
|
||||
if ($this->plugin->is_organizer($object)) {
|
||||
if ($this->plugin->is_organizer($object) && empty($object['_method'])) {
|
||||
unset($object['sequence']);
|
||||
}
|
||||
else if (isset($old['sequence'])) {
|
||||
else if (isset($old['sequence']) && empty($object['_method'])) {
|
||||
$object['sequence'] = $old['sequence'];
|
||||
}
|
||||
|
||||
|
|
|
@ -615,6 +615,12 @@ class tasklist extends rcube_plugin
|
|||
if (isset($rec['attendees']) && !is_array($rec['attendees']))
|
||||
$rec['attendees'] = array();
|
||||
|
||||
foreach ((array)$rec['attendees'] as $i => $attendee) {
|
||||
if (is_string($attendee['rsvp'])) {
|
||||
$rec['attendees'][$i]['rsvp'] = $attendee['rsvp'] == 'true' || $attendee['rsvp'] == '1';
|
||||
}
|
||||
}
|
||||
|
||||
// copy the task status to my attendee partstat
|
||||
if (!empty($rec['_reportpartstat'])) {
|
||||
if (($idx = $this->is_attendee($rec)) !== false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue