Bug 1271662 - impossible to view the list of attendees , an event a shared agenda with read access on it. r=MakeMyDay a=Philipp
authorDecathlon <bv1578@gmail.com>
Wed, 01 Jun 2016 11:00:56 +0200
changeset 27139 55c4dc9f805faa9f31c936f842f3cd95c8428eff
parent 27138 400a26ec082840422d577ada4553a7b614519f50
child 27140 0dbd8ee150fb62ac5e695db93c8293976a93d382
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMakeMyDay, Philipp
bugs1271662
Bug 1271662 - impossible to view the list of attendees , an event a shared agenda with read access on it. r=MakeMyDay a=Philipp
calendar/base/content/dialogs/calendar-summary-dialog.js
--- a/calendar/base/content/dialogs/calendar-summary-dialog.js
+++ b/calendar/base/content/dialogs/calendar-summary-dialog.js
@@ -46,24 +46,25 @@ function onLoad() {
 
     // set the dialog-id to enable the right window-icon to be loaded.
     if (cal.isEvent(item)) {
         setDialogId(document.documentElement, "calendar-event-summary-dialog");
     } else if (cal.isToDo(item)) {
         setDialogId(document.documentElement, "calendar-task-summary-dialog");
     }
 
+    window.attendees = item.getAttendees({});
+
     calendar = cal.wrapInstance(item.calendar, Components.interfaces.calISchedulingSupport);
     window.readOnly = !(isCalendarWritable(calendar)
                         && (userCanModifyItem(item)
                             || (calendar
                                 && item.calendar.isInvitation(item)
                                 && userCanRespondToInvitation(item))));
     if (!window.readOnly && calendar) {
-        window.attendees = item.getAttendees({});
         var attendee = calendar.getInvitedAttendee(item);
         if (attendee) {
             // if this is an unresponded invitation, preset our default alarm values:
             if (!item.getAlarms({}).length &&
                 (attendee.participationStatus == "NEEDS-ACTION")) {
                 cal.alarms.setDefaultValues(item);
             }