From a25e1ac6231c63ac01878c032bcbffe09d6d9df2 Mon Sep 17 00:00:00 2001 From: "daniel.boelzle%sun.com" Date: Tue, 17 Apr 2007 13:27:57 +0000 Subject: [PATCH] Bug 340949: fixing REPLY when writing exceptions for recurring events git-svn-id: svn://10.0.0.236/trunk@224628 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/providers/wcap/calWcapCalendarItems.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/calendar/providers/wcap/calWcapCalendarItems.js b/mozilla/calendar/providers/wcap/calWcapCalendarItems.js index 4b2c313f262..4d26be2e068 100644 --- a/mozilla/calendar/providers/wcap/calWcapCalendarItems.js +++ b/mozilla/calendar/providers/wcap/calWcapCalendarItems.js @@ -298,13 +298,15 @@ function calWcapCalendar_storeItem(bAddItem, item, oldItem, request, netRespFunc var params = ""; var calId = this.calId; - if (oldItem && this.isInvitation(oldItem)) { // REPLY + if (this.isInvitation(item)) { // REPLY bAttendeeReply = true; var att = getAttendeeByCalId(item.getAttendees({}), calId); if (att) { log("attendee: " + att.icalProperty.icalString, this); - var oldAtt = getAttendeeByCalId(oldItem.getAttendees({}), calId); - if (att.participationStatus != oldAtt.participationStatus) { + var oldAtt = null; + if (oldItem) + oldAtt = getAttendeeByCalId(oldItem.getAttendees({}), calId); + if (!oldAtt || (att.participationStatus != oldAtt.participationStatus)) { // REPLY first for just this calendar: params += ("&attendees=PARTSTAT=" + att.participationStatus + "^" + encodeURIComponent(att.id));