Closed
Bug 326787
Opened 19 years ago
Closed 19 years ago
day/week view fails if event end is on next day [exception in getStartEndMinutesForOccurrence]
Categories
(Calendar :: Internal Components, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ssitter, Assigned: ssitter)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.40 KB,
patch
|
jminta
:
first-review+
|
Details | Diff | Splinter Review |
Day/week view fails if event end is on next day. (Sunbird and Lightning)
1. Create an event lasting 00:00 - 23:59 on the same day.
2. Change end date to the next day, e.g. 00:01.
Actual result: Error in JavaScript console:
---------------------------------------------------------------------
Error: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [calIDateTime.hour]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame :: chrome://calendar/content/
calendar-multiday-view.xml :: getStartEndMinutesForOccurrence :: line 537"
data: no]
---------------------------------------------------------------------
Afterwards Sunbird/Lightning can't be used anymore. Error occurs again during next startup because event is still in database. You have to edit storage.sdb or create a new profile to get rid of this.
| Assignee | ||
Comment 1•19 years ago
|
||
| Assignee | ||
Comment 2•19 years ago
|
||
*** Bug 326796 has been marked as a duplicate of this bug. ***
Comment 3•19 years ago
|
||
Comment on attachment 211477 [details] [diff] [review]
clone startDate and endDate before altering
Clone is expensive since it involves creating a new xpcom object. (getInTimezone is already going to do this, too.) I think we should probably just work with js-variables sHour, sMinute, eHour, and eMinute. Then we can reset those to 0 or 24 cheaply, as needed. Thoughts?
| Assignee | ||
Comment 4•19 years ago
|
||
This patch uses js variables as proposed by Joey.
Attachment #211490 -
Flags: first-review?(jminta)
Comment 5•19 years ago
|
||
Comment on attachment 211490 [details] [diff] [review]
use js variables
Sweet! r=jminta
Attachment #211490 -
Flags: first-review?(jminta) → first-review+
Comment 6•19 years ago
|
||
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•19 years ago
|
Attachment #211477 -
Attachment is obsolete: true
Attachment #211477 -
Flags: first-review?(jminta)
Comment 7•19 years ago
|
||
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060927 Calendar/0.3a2+
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•