Closed Bug 1201838 Opened 9 years ago Closed 9 years ago

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

Categories

(Calendar :: Printing, defect)

Lightning 4.4
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

References

Details

(Keywords: regression)

Attachments

(1 file)

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.
Blocks: 359007
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+
Keywords: checkin-needed
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
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 4.5
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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: