bug 355304. Include exceptions when exporting to ics. r=dmose. npotb

This commit is contained in:
mvl%exedo.nl 2006-10-05 20:21:23 +00:00
Родитель c45a63e65f
Коммит 5e37a36764
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -242,6 +242,16 @@ function ics_exportToStream(aStream, aCount, aItems) {
for each (item in aItems) {
calComp.addSubcomponent(item.icalComponent);
var rec = item.recurrenceInfo;
if (rec != null) {
var exceptions = rec.getExceptionIds({});
for each ( var exid in exceptions ) {
var ex = rec.getExceptionFor(exid, false);
if (ex != null) {
calComp.addSubcomponent(ex.icalComponent);
}
}
}
}
var str = calComp.serializeToICS();