don't store recurEnd if it's null

This commit is contained in:
vladimir%pobox.com 2004-12-14 08:17:46 +00:00
Родитель 5f0c105816
Коммит 45d32db9bd
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -450,7 +450,7 @@ calStorageCalendar.prototype = {
dump ("RINFO: " + item.recurrenceInfo + "\n");
if (item.recurrenceInfo && item.recurrenceInfo.recurType != 0) {
dump ("GETOCCURRENCESBETWEEN\n");
dump ("GETOCCURRENCESBETWEEN " + aRangeStart.jsDate + " -> " + aRangeEnd.jsDate + "\n");
iid = kCalIItemOccurrence;
items = item.recurrenceInfo.getOccurrencesBetween (item, aRangeStart, aRangeEnd, {});
dump ("items: " + items + "\n");
@ -931,6 +931,7 @@ calStorageCalendar.prototype = {
this.mInsertRecurrence.reset();
// also set the item recurrence end
if (rec.recurEnd)
ip.recur_end = rec.recurEnd.jsDate;
}