If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Lightning: Printing fails if calendar view was not shown before

VERIFIED FIXED

Status

Calendar
Printing
VERIFIED FIXED
11 years ago
11 years ago

People

(Reporter: Stefan Sitter, Assigned: Joey Minta)

Tracking

Trunk
x86
Windows 2000

Details

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
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)
(Assignee)

Comment 1

11 years ago
Created attachment 246547 [details] [diff] [review]
untested patch

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

Comment 2

11 years ago
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.

Comment 3

11 years ago
checked in with fix for bug 351957.
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

11 years ago
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.