Fix bug 774211 - PUBLISH does not allow update (SEQUENCE). r=philipp, patch converted from comment by ssitter,a=philipp
authorklaus <buecher@optosolar.com>
Sat, 29 Sep 2012 19:17:12 +0200
changeset 13027 fa9f0f5581476dbe3eb6438495b88d9082c0faab
parent 13026 e0d4d05beff909b2e032ba5402a13d6a177b0433
child 13028 f2ea5e2fa4f558baf1dbd0604c37ccfa2223ac73
push idunknown
push userunknown
push dateunknown
reviewersphilipp, patch, philipp
bugs774211
Fix bug 774211 - PUBLISH does not allow update (SEQUENCE). r=philipp, patch converted from comment by ssitter,a=philipp
calendar/base/modules/calItipUtils.jsm
--- a/calendar/base/modules/calItipUtils.jsm
+++ b/calendar/base/modules/calItipUtils.jsm
@@ -1010,17 +1010,17 @@ ItipFindItemListener.prototype = {
                                     }
                                     break;
                                 }
                                 case "PUBLISH":
                                     cal.ASSERT(itipItemItem.getAttendees({}).length == 0,
                                                "invalid number of attendees in PUBLISH!");
                                     if (item.calendar.getProperty("itip.disableRevisionChecks") ||
                                         cal.itip.compare(itipItemItem, item) > 0) {
-                                        let newItem = updateItem(newItem, itipItemItem);
+                                        let newItem = updateItem(item, itipItemItem);
                                         let action = function(opListener) {
                                             return newItem.calendar.modifyItem(newItem, item, opListener);
                                         };
                                         actionMethod = method + ":UPDATE";
                                         operations.push(action);
                                     }
                                     break;
                                 case "REQUEST":