Closed Bug 361642 Opened 19 years ago Closed 19 years ago

Lightning: Printing fails if calendar view was not shown before

Categories

(Calendar :: Printing, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: jminta)

Details

Attachments

(1 file)

Lightning: Printing fails if calendar view was not shown before Steps to Reproduce: 1. Start Thunderbird. Do _not_ switch to calendar view! 2. Select 'Calendar->Print Calendar...' command Actual Results: Print preview dialog is displayed but preview area shows nothing. The drop down menu for print layout selection is empty. JavaScript console shows: Error: theView.startDay has no properties Source File: chrome://calendar/content/printDialog.js Line: 53 Closing the dialog results in console error: Error: gTempFile has no properties Source File: chrome://calendar/content/printDialog.js Line: 88 Expected Results: Print preview dialog is shown and working correctly. Additional Information: No regression like the similar Bug 360821, the error already happens with the first Lightning build that has Printing enabled: Fails using Thunderbird/1.5.0.8 (20061122) + Lightning/0.4a1 (2006103107) Fails using Thunderbird/1.5.0.8 (20061122) + Lightning/0.4a1 (2006112205)
Attached patch untested patchSplinter Review
Untested patch that should fix things here. Whenever I get around to getting a new lightning tree and confirming that this actually does fix stuff, I'll ask for review.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
I would prefer to actually disable the "current-view" and "selection" radios if no view is present. Did that in https://bugzilla.mozilla.org/attachment.cgi?id=249253.
checked in with fix for bug 351957.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Verified using Thunderbird/1.5.0.9 (20061207) + Lightning/0.4a1 (2007022303). Printing for custom date range is possible, all other options are disabled.
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: