Fix bug 507215 - Creating repeating event/task fails [Status Code: 400 Bad Request Body: Entry can not contain both gd:when and gd:recurrence elements]. r=markus
--HG-- extra : rebase_source : be65d9e16e811102aebd4cebb119f519161efc96
This commit is contained in:
Родитель
391ecf3d3d
Коммит
85fc295226
|
@ -50,10 +50,8 @@ function calGoogleRequest(aSession) {
|
|||
calGoogleRequest.prototype = {
|
||||
|
||||
/* Members */
|
||||
uri: null,
|
||||
mUploadContent: null,
|
||||
mUploadData: null,
|
||||
responseListener: null,
|
||||
mSession: null,
|
||||
mExtraData: null,
|
||||
mQueryParameters: null,
|
||||
|
|
|
@ -362,8 +362,11 @@ function ItemToXMLEntry(aItem, aAuthorEmail, aAuthorName) {
|
|||
|
||||
// gd:when
|
||||
var duration = aItem.endDate.subtractDate(aItem.startDate);
|
||||
entry.gd::when.@startTime = cal.toRFC3339(aItem.startDate);
|
||||
entry.gd::when.@endTime = cal.toRFC3339(aItem.endDate);
|
||||
if (!aItem.recurrenceInfo) {
|
||||
// gd:when isn't allowed for recurring items where gd:recurrence is set
|
||||
entry.gd::when.@startTime = cal.toRFC3339(aItem.startDate);
|
||||
entry.gd::when.@endTime = cal.toRFC3339(aItem.endDate);
|
||||
}
|
||||
|
||||
// gd:reminder
|
||||
let alarms = aItem.getAlarms({});
|
||||
|
|
Загрузка…
Ссылка в новой задаче