Save calendar: use 'name' instead of 'displayName'
parent
ba35bc801f
commit
d72f83ee95
|
@ -116,9 +116,9 @@
|
||||||
* @apiExample {curl} Example usage:
|
* @apiExample {curl} Example usage:
|
||||||
* curl -i http://localhost/SOGo/so/sogo1/Calendar/personal/save \
|
* curl -i http://localhost/SOGo/so/sogo1/Calendar/personal/save \
|
||||||
* -H "Content-Type: application/json" \
|
* -H "Content-Type: application/json" \
|
||||||
* -d '{"displayName": "Personal Calendar", "notifications": {"notifyOnPersonalModifications": true}}'
|
* -d '{"name": "Personal Calendar", "notifications": {"notifyOnPersonalModifications": true}}'
|
||||||
*
|
*
|
||||||
* @apiParam {String} displayName Human readable name
|
* @apiParam {String} name Human readable name
|
||||||
* @apiParam {String} color Calendar's hex color code
|
* @apiParam {String} color Calendar's hex color code
|
||||||
* @apiParam {Number} includeInFreeBusy 1 if calendar must be include in freebusy
|
* @apiParam {Number} includeInFreeBusy 1 if calendar must be include in freebusy
|
||||||
* @apiParam {Number} synchronizeCalendar 1 if calendar must be synchronized
|
* @apiParam {Number} synchronizeCalendar 1 if calendar must be synchronized
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
request = [context request];
|
request = [context request];
|
||||||
params = [[request contentAsString] objectFromJSONString];
|
params = [[request contentAsString] objectFromJSONString];
|
||||||
|
|
||||||
o = [params objectForKey: @"displayName"];
|
o = [params objectForKey: @"name"];
|
||||||
if ([o isKindOfClass: [NSString class]])
|
if ([o isKindOfClass: [NSString class]])
|
||||||
[calendar renameTo: o];
|
[calendar renameTo: o];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue