Bug 1476725 - Fix tasks displayed in day view and week view. r+a=philipp
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 25 Mar 2019 11:53:35 +1300
changeset 33973 6812e206e6d8
parent 33972 d9af5609d45e
child 33974 327877d32257
push id2394
push usermozilla@jorgk.com
push dateSat, 30 Mar 2019 21:10:54 +0000
treeherdercomm-beta@a07bc5354c40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1476725
Bug 1476725 - Fix tasks displayed in day view and week view. r+a=philipp
calendar/base/content/calendar-multiday-view.xml
--- a/calendar/base/content/calendar-multiday-view.xml
+++ b/calendar/base/content/calendar-multiday-view.xml
@@ -878,17 +878,17 @@
                     // If the items start at the same time, return the longer one
                     // first
                     return bEventInfo.layoutEnd.compare(aEventInfo.layoutEnd);
                 } else {
                     return startComparison;
                 }
             }
             this.mEventInfos.forEach((aEventInfo) => {
-                let item = aEventInfo.event.clone().QueryInterface(Ci.calIEvent);
+                let item = aEventInfo.event.clone();
                 let start = item.startDate || item.entryDate || item.dueDate;
                 start = start.getInTimezone(this.mTimezone);
                 aEventInfo.layoutStart = start;
                 let end = item.endDate || item.dueDate || item.entryDate;
                 end = end.getInTimezone(this.mTimezone);
                 let secEnd = start.clone();
                 secEnd.addDuration(this.mMinDuration);
                 if (secEnd.nativeTime > end.nativeTime) {