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
This commit is contained in:
daniel.boelzle%sun.com
2007-04-17 13:27:57 +00:00
parent bc13c51141
commit a25e1ac623

View File

@@ -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));