Closed Bug 333686 Opened 14 years ago Closed 14 years ago

new task dialog has "not specified" status but its "% completed" textbox is editable

Categories

(Calendar :: Internal Components, defect, minor)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: damiano.albani, Assigned: martinschroeder)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.0.1) Gecko/20060313 Debian/1.5.dfsg+1.5.0.1-4 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8) Gecko/20060412 Mozilla Sunbird/0.3a1+

When creating a new task, the dialog window has its "Status" dropdown widget set by default to "Not specified". At this point, the completed percentage textbox is editable.
However, the updateToDoStatus() function specifically disables this textbox when the task status is set to "not specified".


Reproducible: Always

Steps to Reproduce:
1. Click on "New Task" button
2. Click on "More" to switch to detailed view
3.

Actual Results:  
The completion percentage textbox input is editable.

Expected Results:  
The completion percentage textbox input should NOT be editable.

Adding 'disabled="true"' to the "percent-complete-textbox" element should solve the problem.
Attached patch Patch v1Splinter Review
null-value of item.status/item.getProperty("STATUS") (for new task) was not recognized by updateToDoStatus in calendar-event-dialog.js

A question that occurs to me: Should task tooltips show percentage for tasks if they were changed from IN-PROCESS/NEEDS-ACTION to NONE?
Assignee: base → mschroeder
Status: UNCONFIRMED → ASSIGNED
Attachment #218160 - Flags: first-review?(jminta)
OS: Linux → All
Hardware: PC → All
Version: unspecified → Trunk
Comment on attachment 218160 [details] [diff] [review]
Patch v1

r=jminta
Attachment #218160 - Flags: first-review?(jminta) → first-review+
Whiteboard: [needs landing]
patch checked in on trunk and MOZILLA_1_8_BRANCH
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060929 Sunbird/0.3
Status: RESOLVED → VERIFIED
Whiteboard: [litmus testcase wanted]
Litmus testcase 2618 created
Whiteboard: [litmus testcase wanted]
You need to log in before you can comment on or make changes to this bug.