Closed
Bug 321378
Opened 18 years ago
Closed 18 years ago
calEvent::getOccurrencesBetween error when all views haven't been initialized
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jminta, Assigned: jminta)
References
Details
(Keywords: regression)
Attachments
(1 file)
2.73 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
If you add/modify/delete an event before showing all the views, an error is thrown by the views that have not been shown. They each try to get the occurrences of the event that are in their display range, but since they have no startdate, you get an error. This was identified by gekacheka in https://bugzilla.mozilla.org/show_bug.cgi?id=297934#c34
Assignee | ||
Comment 1•18 years ago
|
||
This patch uses the same trick that Lightning does. It avoids adding observers until the view has actually been shown. Then, since the view has been shown, there must be a start/end date, and the onAddItem, etc methods can be called without a problem.
Comment 2•18 years ago
|
||
Comment on attachment 206763 [details] [diff] [review] don't add observers until view is shown r=mvl
Attachment #206763 -
Flags: first-review?(mvl) → first-review+
Assignee | ||
Comment 3•18 years ago
|
||
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•