mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
Updated gam calendars <CalendarEntity> import event icaluid <iCalUID> json <JSONdata>
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
Merged GAM-Team version
|
||||
|
||||
6.77.15
|
||||
|
||||
Updated `gam calendars <CalendarEntity> import event icaluid <iCalUID> json <JSONdata>` to handle API
|
||||
constraints on recurring events.
|
||||
|
||||
6.77.14
|
||||
|
||||
Fixed bug in `gam calendars <CalendarEntity> import event icaluid <iCalUID> json <JSONdata>` that caused an error.
|
||||
|
||||
@@ -36918,9 +36918,13 @@ def _getCalendarEventAttribute(myarg, body, parameters, function):
|
||||
parameters['attendees'].append(addAttendee)
|
||||
elif myarg == 'json':
|
||||
jsonData = getJSON(EVENT_JSON_CLEAR_FIELDS)
|
||||
if function in {'insert', 'import'}:
|
||||
if function == 'insert':
|
||||
body.update(jsonData)
|
||||
clearJSONfields(body, EVENT_JSON_INSERT_CLEAR_FIELDS)
|
||||
elif function == 'import':
|
||||
body.update(jsonData)
|
||||
if 'id' in body:
|
||||
body['iCalUID'] = body.pop('id')
|
||||
elif function == 'update':
|
||||
if 'event' in jsonData and 'attendees' in jsonData['event']:
|
||||
parameters['attendees'].extend(jsonData['event'].pop('attendees'))
|
||||
|
||||
Reference in New Issue
Block a user