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:
Philipp Kewisch 2009-09-09 14:43:48 +02:00
Родитель 391ecf3d3d
Коммит 85fc295226
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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({});