Bug 343238 JavaScript error for zero length tasks. patch by thomas.benisch@sun.com, r=jminta

This commit is contained in:
jminta%gmail.com 2006-06-30 21:18:43 +00:00
parent 8b22390c60
commit 82d83c5a4f
2 changed files with 8 additions and 2 deletions

View File

@ -1256,7 +1256,10 @@
if (targetDate.compare(finishDate) == 0) {
// Zero length events are silly, but we have to handle them
return [this.findBoxForDate(targetDate)];
var box = this.findBoxForDate(targetDate);
if (box) {
boxes.push(box);
}
}
while (targetDate.compare(finishDate) == -1) {

View File

@ -2530,7 +2530,10 @@
if (targetDate.compare(finishDate) == 0) {
// Zero length events are silly, but we have to handle them
return [this.findColumnForDate(targetDate)];
var col = this.findColumnForDate(targetDate);
if (col) {
columns.push(col);
}
}
while (targetDate.compare(finishDate) == -1) {