Bug 1304881 - Can't create a Custom recurring Monthly event. r=MakeMyDay a=philipp
authorDecathlon <bv1578@gmail.com>
Fri, 23 Sep 2016 09:57:38 +0200
changeset 27580 f3784bf19b49668e6fb218f90184d1aefad9367b
parent 27579 fa049d109e5c0e5ab8db93097c15a465b94acfc8
child 27581 6ef1c47e546773a2dd824b11aa55a99c0ae8fa8f
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
bugs1304881
Bug 1304881 - Can't create a Custom recurring Monthly event. r=MakeMyDay a=philipp
calendar/base/content/dialogs/calendar-event-dialog-recurrence.js
--- a/calendar/base/content/dialogs/calendar-event-dialog-recurrence.js
+++ b/calendar/base/content/dialogs/calendar-event-dialog-recurrence.js
@@ -306,17 +306,17 @@ function onSave(item) {
             break;
         }
         case 2: {
             recRule.type = "MONTHLY";
             let monthInterval = Number(getElementValue("monthly-interval"));
             recRule.interval = monthInterval;
             let monthlyGroup = document.getElementById("monthly-group");
             if (monthlyGroup.selectedIndex == 0) {
-                let monthlyOrdinal = Number(getElementValue("monthly-monthlyOrdinal"));
+                let monthlyOrdinal = Number(getElementValue("monthly-ordinal"));
                 let monthlyDOW = Number(getElementValue("monthly-weekday"));
                 if (monthlyDOW < 0) {
                     if (monthlyOrdinal == 0) {
                         // Monthly rule "Every day of the month".
                         recRule.setComponent("BYDAY", 7, ALL_WEEKDAYS);
                     } else {
                         // One of the first five days or the last day of the month.
                         recRule.setComponent("BYMONTHDAY", 1, [monthlyOrdinal]);