Closed Bug 343238 Opened 19 years ago Closed 19 years ago

JavaScript error for zero length tasks

Categories

(Calendar :: Internal Components, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: thomas.benisch, Assigned: thomas.benisch)

References

Details

Attachments

(1 file)

For zero length tasks (identical date and due date) the month view creates a JavaScript error, if the date of the task is outside the month view range. Steps to Reproduce: 1. create a task with identical date and due date, e.g. 03-May-2006, 0:00 2. select month view, navigate to June 2006 Actual Results: ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "'[JavaScript Error: "box has no properties" {file: "chrome://cale ndar/content/calendar-month-view.xml" line: 1286}]' when calling method: [calIOp erationListener::onGetResult]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_E RROR_WITH_DETAILS)" location: "JS frame :: file:///D:/Development/pim/wntmsci10 /misc/mozilla/dist/xpi-stage/lightning/components/calCompositeCalendar.js :: ano nymous :: line 467" data: yes] ************************************************************
taking this one
Assignee: base → thomas.benisch
same problem in calendar-multiday-view.xml
Attached patch patch v1Splinter Review
fix for calendar-month-view.xml and calendar-multiday-view.xml
Attachment #227680 - Flags: first-review?(jminta)
*** Bug 342185 has been marked as a duplicate of this bug. ***
(In reply to comment #4) > *** Bug 342185 has been marked as a duplicate of this bug. *** I resolved it this way because Thomas already attached a patch in the new bug instead of the original bug.
Comment on attachment 227680 [details] [diff] [review] patch v1 r=jminta. thanks for the patch
Attachment #227680 - Flags: first-review?(jminta) → first-review+
patch checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Verified with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060705 Sunbird/0.3a2+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: