The default bug view has changed. See this FAQ.

Printing tasks is broken [Error: TypeError: aItem[cal.calGetStartDateProp(...)] is null]

RESOLVED FIXED in 4.4

Status

Calendar
Printing
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: Stefan Sitter, Assigned: Stefan Sitter)

Tracking

({regression})

Lightning 4.4
regression

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
Lightning 4.4a2 (20150902004005) with Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Thunderbird/42.0a2

Trying to printing calendar that contains tasks with only due date is broken in monthly and weekly layout. The following errors are reported:

Error: TypeError: aItem[cal.calGetStartDateProp(...)] is null
Source File: resource://calendar/modules/calPrintUtils.jsm Line: 164

Error: Calendar print dialog:refreshHtml: [Exception... "[JavaScript Error: "aItem[cal.calGetStartDateProp(...)] is null" {file: "resource://calendar/modules/calPrintUtils.jsm" line: 164}]'[JavaScript Error: "aItem[cal.calGetStartDateProp(...)] is null" {file: "resource://calendar/modules/calPrintUtils.jsm" line: 164}]' when calling method: [calIPrintFormatter::formatToHtml]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://calendar/content/calendar-print-dialog.js :: getSettingsResponse :: line 205"  data: yes]
Source File: chrome://calendar/content/calendar-print-dialog.js Line: 226

Might be regression from Bug 359007.
(Assignee)

Updated

2 years ago
Blocks: 359007
(Assignee)

Comment 1

2 years ago
Created attachment 8657051 [details] [diff] [review]
handle tasks without start date or due date or both

Restore previous behavior for tasks without start date or due date or both.
Assignee: nobody → ssitter
Status: NEW → ASSIGNED
Attachment #8657051 - Flags: review?(philipp)
Comment on attachment 8657051 [details] [diff] [review]
handle tasks without start date or due date or both

Review of attachment 8657051 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, r=philipp. Thanks for the patch!
Attachment #8657051 - Flags: review?(philipp) → review+
(Assignee)

Updated

2 years ago
Keywords: checkin-needed

Comment 3

2 years ago
https://hg.mozilla.org/comm-central/rev/ba74dfc111e2ef138a98bee3d76a4c3a8309ae5d
Bug 1201838 - Printing tasks is broken [Error: TypeError: aItem[cal.calGetStartDateProp(...)] is null]. r=Fallen a=aleth SM CLOSED TREE

Updated

2 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 4.5
(Assignee)

Comment 4

2 years ago
Comment on attachment 8657051 [details] [diff] [review]
handle tasks without start date or due date or both

Fix is required for Lightning 4.4 too.
Attachment #8657051 - Flags: approval-calendar-aurora?(philipp)
Attachment #8657051 - Flags: approval-calendar-aurora?(philipp) → approval-calendar-aurora+
Backported to releases/comm-aurora changeset c5e0f88e8a9f
Target Milestone: 4.5 → 4.4
You need to log in before you can comment on or make changes to this bug.