Closed
Bug 328754
Opened 20 years ago
Closed 20 years ago
Event/task creation fails if 'Default alarm setting' is set to 'On'
Categories
(Calendar :: Internal Components, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ssitter, Assigned: jminta)
References
Details
Attachments
(1 file)
|
3.26 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
Event/task creation fails if 'Default alarm setting' is set to 'On'
Go to Sunbird preferences -> Alarms -> Default alarm settings for event/task and set values to 'On'.
Try to create new event --> Creation fails. Error in JavaScript console:
Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: chrome://calendar/content/calendar.js :: newEvent :: line 291" data: no]
Try to create new task --> Creation fails. Error in JavaScript console:
Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: chrome://calendar/content/calendar.js :: newToDo :: line 328" data: no]
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060227 Mozilla Sunbird/0.3a1+
| Assignee | ||
Comment 1•20 years ago
|
||
I missed this bit of code when updating the alarm code. This patch moves the relevant bits to the new alarm properties.
| Reporter | ||
Comment 2•20 years ago
|
||
*** Bug 328503 has been marked as a duplicate of this bug. ***
Comment 3•20 years ago
|
||
Comment on attachment 213351 [details] [diff] [review]
upgrade to new alarm properties
>+ var units = alarmsBranch.getCharPref("eventalarmunit");
>+ alarmOffset[units] = alarmsBranch.getIntPref("eventalarmlen");
You should wrap those calls to the prefservice in a try/catch block. You never know what someone did to his pref file. (same in newTodo)
r=mvl with that fixed
Attachment #213351 -
Flags: first-review?(mvl) → first-review+
| Assignee | ||
Comment 4•20 years ago
|
||
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 5•20 years ago
|
||
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060909 Calendar/0.3a2+
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•