Bug 380060 - Freebusy fix for cached mode. r=msk,a=philipp
authorPhilipp Kewisch <mozilla@kewis.ch>
Tue, 18 Oct 2011 16:52:42 +0200
changeset 9296 88d3ceed5fd2acac6dffc4f7dc98f7e5f461eaed
parent 9295 35295351770b74834e21f4be1345fdbeb3a0ceee
child 9297 84b6bba97413e846c62127c6f9da9f7c23ac897c
push id230
push userbugzilla@standard8.plus.com
push dateTue, 08 Nov 2011 22:55:24 +0000
treeherdercomm-beta@63dad5648415 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmsk, philipp
bugs380060
Bug 380060 - Freebusy fix for cached mode. r=msk,a=philipp
calendar/providers/caldav/calDavCalendar.js
--- a/calendar/providers/caldav/calDavCalendar.js
+++ b/calendar/providers/caldav/calDavCalendar.js
@@ -274,16 +274,19 @@ calDavCalendar.prototype = {
                 this.mWebdavSyncToken = itemData;
                 this.mOfflineStorage.deleteMetaData("sync-token");
             } else if (itemId == "calendar-properties") {
                 this.restoreCalendarProperties(itemData);
                 this.mCheckedServerInfo = true;
                 this.setProperty("currentStatus", Components.results.NS_OK);
                 this.readOnly = false;
                 this.disabled = false;
+                if (this.mHaveScheduling || this.hasAutoScheduling) {
+                    cal.getFreeBusyService().addProvider(this);
+                }
             } else {
                 var itemDataArray = itemData.split("\u001A");
                 var etag = itemDataArray[0];
                 var resourcePath = itemDataArray[1];
                 var isInboxItem = itemDataArray[2];
                 if (itemDataArray.length == 3) {
                     this.mHrefIndex[resourcePath] = itemId;
                     var locationPath = resourcePath