зеркало из https://github.com/mozilla/pjs.git
Bug 399780 - Automatic reminders for tasks not taken into account if no day has been selected, patch=philipp, r=mickey
This commit is contained in:
Родитель
f0c82f7a77
Коммит
30cf3cd5a3
|
@ -314,7 +314,8 @@ function setDefaultAlarmValues(aItem)
|
|||
if (alarmsBranch.getIntPref("onfortodos") == 1) {
|
||||
// You can't have an alarm if the entryDate doesn't exist.
|
||||
if (!aItem.entryDate) {
|
||||
aItem.entryDate = getSelectedDay().clone();
|
||||
aItem.entryDate = getSelectedDay() &&
|
||||
getSelectedDay().clone() || now();
|
||||
}
|
||||
var alarmOffset = Components.classes["@mozilla.org/calendar/duration;1"]
|
||||
.createInstance(Components.interfaces.calIDuration);
|
||||
|
|
Загрузка…
Ссылка в новой задаче