From d72f83ee957560775db3d5925492918ab0bd429f Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 30 Mar 2015 13:33:53 -0400 Subject: [PATCH] Save calendar: use 'name' instead of 'displayName' --- UI/Scheduler/UIxCalendarProperties.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/Scheduler/UIxCalendarProperties.m b/UI/Scheduler/UIxCalendarProperties.m index bd1497dc2..b4d1bcd0b 100644 --- a/UI/Scheduler/UIxCalendarProperties.m +++ b/UI/Scheduler/UIxCalendarProperties.m @@ -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];