javascript error with delete of non-existant to-do item

RESOLVED FIXED

Status

Calendar
General
RESOLVED FIXED
16 years ago
12 years ago

People

(Reporter: Brant Gurganus, Assigned: Mike Potter)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
AJB, mikep said to assign this to you.

Error (from JavaScript Console):
Error: uncaught exception: [Exception... "Component returned failure code:
0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsITreeContentView.getItemAtIndex]" 
nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame ::
chrome://calendar/content/unifinderToDo.js :: unifinderDeleteToDoCommand :: line
216"  data: no]

To reproduce:
1. Clear to-do list.
2. Right-click list and choose delete.
(Assignee)

Comment 1

16 years ago
Confirmed on Linux. Marking all.
Severity: trivial → normal
OS: Windows XP → All

Comment 2

16 years ago
Created attachment 93581 [details] [diff] [review]
Patch for todo-tree

- completed time only set when available
- extra try/catch in dateformatter

- popup menu for task items only appaers when clicking on treeitem
- Check on delete if there actually is an item

Comment 3

16 years ago
patch attached. re-assign to Mike for check(in)

Note that the observer/calendarSelection probably have to be refactored in the 
future to integrate tasks with events.
Assignee: ajbu → mikep
(Reporter)

Updated

16 years ago
Blocks: 160497

Updated

16 years ago
Blocks: 161194
(Assignee)

Comment 4

16 years ago
Checked into cvs.
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: colint → general
You need to log in before you can comment on or make changes to this bug.