Save calendar: use 'name' instead of 'displayName'

pull/91/head
Francis Lachapelle 2015-03-30 13:33:53 -04:00
parent ba35bc801f
commit d72f83ee95
1 changed files with 3 additions and 3 deletions

View File

@ -116,9 +116,9 @@
* @apiExample {curl} Example usage:
* curl -i http://localhost/SOGo/so/sogo1/Calendar/personal/save \
* -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 {Number} includeInFreeBusy 1 if calendar must be include in freebusy
* @apiParam {Number} synchronizeCalendar 1 if calendar must be synchronized
@ -140,7 +140,7 @@
request = [context request];
params = [[request contentAsString] objectFromJSONString];
o = [params objectForKey: @"displayName"];
o = [params objectForKey: @"name"];
if ([o isKindOfClass: [NSString class]])
[calendar renameTo: o];