bug #374936 moving event from one calendar to another fails in calTransactionManager. patch by ssitter@googlemail.com, r=mickey

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@222193 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
michael.buettner%sun.com
2007-03-22 16:55:33 +00:00
parent c4bdf2924a
commit 3ffb6e0112

View File

@@ -107,6 +107,7 @@ calTransaction.prototype = {
mCalendar: null,
mItem: null,
mOldItem: null,
mOldCalendar: null,
mListener: null,
mIsDoTransaction: false,
@@ -174,7 +175,7 @@ calTransaction.prototype = {
this.mCalendar.deleteItem(this.mItem, this);
break;
case 'move':
this.mOldCalendar = this.mOldItem.mCalendar;
this.mOldCalendar = this.mOldItem.calendar;
this.mOldCalendar.deleteItem(this.mOldItem, this);
this.mCalendar.addItem(this.mItem, this);
break;