diff --git a/mozilla/calendar/providers/gdata/components/calGoogleCalendar.js b/mozilla/calendar/providers/gdata/components/calGoogleCalendar.js index ef485010fe8..189e6545bb3 100644 --- a/mozilla/calendar/providers/gdata/components/calGoogleCalendar.js +++ b/mozilla/calendar/providers/gdata/components/calGoogleCalendar.js @@ -341,7 +341,7 @@ calGoogleCalendar.prototype = { // to google. This saves network traffic. if (relevantFieldsMatch(aOldItem, aNewItem)) { LOG("Not requesting item modification for " + aOldItem.id + - "(" + aOldItem.title + "), relevant fields match"); + "(" + aOldItem.title + "), relevant fields match"); if (aListener != null) { aListener.onOperationComplete(this, @@ -555,8 +555,7 @@ calGoogleCalendar.prototype = { var item = this.general_response(Ci.calIOperationListener.MODIFY, aResult, aStatus, - aRequest.extraData.listener, - aRequest); + aRequest.extraData.listener); // Notify Observers if (item) { this.notifyObservers("onModifyItem", @@ -630,7 +629,7 @@ calGoogleCalendar.prototype = { this.general_response(Ci.calIOperationListener.GET, aResult, aStatus, - aRequest.extraData.listener); + aRequest.extraData); }, /** diff --git a/mozilla/calendar/providers/gdata/components/calGoogleSession.js b/mozilla/calendar/providers/gdata/components/calGoogleSession.js index 156283a8eaf..3e23e66d266 100644 --- a/mozilla/calendar/providers/gdata/components/calGoogleSession.js +++ b/mozilla/calendar/providers/gdata/components/calGoogleSession.js @@ -449,7 +449,7 @@ calGoogleSession.prototype = { this.googleFullName); request.type = request.MODIFY; - request.uri = getItemEditURI(aNewItem); + request.uri = getItemEditURI(aOldItem); request.setUploadData("application/atom+xml; charset=UTF-8", xmlEntry); request.setResponseListener(aCalendar, aResponseListener); request.extraData = aExtraData;