Closed Bug 348500 Opened 18 years ago Closed 18 years ago

error when press cancel in dialog "Editing a repeating item" for recurrence event

Categories

(Calendar :: Calendar Frontend, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: damian.publicemail, Assigned: ssitter)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060812 Calendar/0.3a2+

When you try to edit event with recurrence you have to confirm if you want to edit single event or all of them. If you press cancel to abort operation you get error.

Reproducible: Always

Steps to Reproduce:
1. create event with recurrence
2. open created event to edit it
   -> get dialog "Editing a repeating item" to confirm mode of editing: single, all or cancel
3. press cancel to abort operation
   -> error appears in error console
Actual Results:  
error console:

Error: itemToEdit has no properties
Source File: chrome://calendar/content/calendar-views.js
Line: 97


except this error works fine
Version: unspecified → Trunk
Assignee: nobody → ssitter
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch check return of getOccurrenceOrParent (obsolete) — — Splinter Review
Check return of getOccurrenceOrParent(). 
Add comment to getOccurrenceOrParent() that it can return null.
Attachment #233467 - Flags: second-review?(jminta)
Attachment #233467 - Flags: first-review?(mattwillis)
Comment on attachment 233467 [details] [diff] [review]
check return of getOccurrenceOrParent

> Index: mozilla/calendar/base/content/calendar-item-editing.js
> ===================================================================
> +// Returns null if the promt was cancelled.

Typo: correct spelling is "prompt".

r1=lilmatt with that fixed
Attachment #233467 - Flags: first-review?(mattwillis) → first-review+
Fix typo. Carry over r1=lilmatt.
Attachment #233467 - Attachment is obsolete: true
Attachment #233503 - Flags: second-review?(jminta)
Attachment #233503 - Flags: first-review+
Attachment #233467 - Flags: second-review?(jminta)
Comment on attachment 233503 [details] [diff] [review]
check return of getOccurrenceOrParent, v2

r2=jminta
Attachment #233503 - Flags: second-review?(jminta) → second-review+
patch checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
Whiteboard: [litmus testcase wanted]
Litmus testcase 2644 created
Whiteboard: [litmus testcase wanted]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: