Bug 1324006 - Event dialog: until date "forever" changes to today date when reopening the dialog. r=Paul Morris
authorDecathlon <bv1578@gmail.com>
Sun, 08 Jan 2017 10:51:40 +0100
changeset 20980 97a86c21e6c33e5dbee5ce3045d9f4138d2260e2
parent 20979 eef804a8d9cf40c678c1d14c186ec6e9c913818a
child 20981 8a495be3cf4e5e89f9863ff45b89c8dd2baee263
push id12725
push userbv1578@gmail.com
push dateSun, 08 Jan 2017 09:56:04 +0000
treeherdercomm-central@97a86c21e6c3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPaul
bugs1324006
Bug 1324006 - Event dialog: until date "forever" changes to today date when reopening the dialog. r=Paul Morris
calendar/lightning/content/html-item-editing/react-code.js
calendar/lightning/content/lightning-item-iframe.js
--- a/calendar/lightning/content/html-item-editing/react-code.js
+++ b/calendar/lightning/content/html-item-editing/react-code.js
@@ -140,17 +140,17 @@ var TopComponent = React.createClass({
     getDefaultProps: function() {
         return {
             // these "initial" props are passed in as props but
             // immediately become state (state can change, props do not)
             initialTitle: "New Event",
             initialLocation: "",
             initialAllDay: false,
             initialRepeat: "none",
-            initialRepeatUntilDate: "Forever",
+            initialRepeatUntilDate: "forever",
             initialReminders: 0,
             initialDescription: "",
             initialShowTimeAs: "OPAQUE",
             initialCalendarId: 0,
             initialPrivacy: 0,
             initialStatus: 0,
             initialPriority: 0,
             initialUrl: "",
--- a/calendar/lightning/content/lightning-item-iframe.js
+++ b/calendar/lightning/content/lightning-item-iframe.js
@@ -1224,17 +1224,17 @@ function updateDateCheckboxes(aDatePicke
  * Get the item's recurrence information for displaying in dialog controls.
  *
  * @param {Object} aItem  The calendar item
  * @return {string[]}     An array of two strings: [repeatType, untilDate]
  */
 function getRepeatTypeAndUntilDate(aItem) {
     let recurrenceInfo = window.recurrenceInfo;
     let repeatType = "none";
-    let untilDate = "Forever";
+    let untilDate = "forever";
 
     /**
      * Updates the until date (locally and globally).
      *
      * @param aRule  The recurrence rule
      */
     let updateUntilDate = (aRule) => {
         if (!aRule.isByCount) {