mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
Handle the edition of recurring event occurrences
This commit is contained in:
1 parent
049c1385d6
commit
86a0032cc1
9 files changed
+66
-16
No files matched your search
@@ -551,6 +551,7 @@
|
||||
* @apiSuccess {_} . _From [UIxAppointmentEditor viewAction]_
|
||||
*
|
||||
* @apiSuccess (Success 200) {String} id Event ID
|
||||
* @apiSuccess (Success 200) {String} [occurrenceId] Occurrence ID
|
||||
* @apiSuccess (Success 200) {String} pid Calendar ID (event's folder)
|
||||
* @apiSuccess (Success 200) {String} calendar Human readable name of calendar
|
||||
* @apiSuccess (Success 200) {String} startDate Start date (ISO8601)
|
||||
@@ -683,7 +684,6 @@
|
||||
}
|
||||
|
||||
data = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
||||
[co nameInContainer], @"id",
|
||||
[componentCalendar nameInContainer], @"pid",
|
||||
[componentCalendar displayName], @"calendar",
|
||||
[NSNumber numberWithBool: [self isReadOnly]], @"isReadOnly",
|
||||
@@ -692,6 +692,16 @@
|
||||
[self alarm], @"alarm",
|
||||
nil];
|
||||
|
||||
if ([self isChildOccurrence])
|
||||
{
|
||||
[data setObject: [[co container] nameInContainer] forKey: @"id"];
|
||||
[data setObject: [co nameInContainer] forKey: @"occurrenceId"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[data setObject: [co nameInContainer] forKey: @"id"];
|
||||
}
|
||||
|
||||
attachUrls = [self attachUrls];
|
||||
if ([attachUrls count]) [data setObject: attachUrls forKey: @"attachUrls"];
|
||||
|
||||
|
||||
Reference in new issue
Block a user