Closed Bug 436272 Opened 16 years ago Closed 13 years ago

Task with '% complete' greater than 100% -> '% complete' box is empty

Categories

(Calendar :: Tasks, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andreas.treumann, Assigned: mozilla)

Details

Attachments

(1 file)

STEPS TO REPRODUCE:
===================

- create a new task
- select the 'in progress' status
- insert a '% complete' value with more than 100%
- save and close the task
- open the edit dialog of this task and check '% complete'

RESULT:
=======

- the box is empty

EXPECTED RESULT:
================

- the value should be automatically set to 100%

REPRODUCIBLE:
=============

- always
This seems to be "just" an issue with the event dialog.

If I create a task, set the '% complete' value to 100% or greater and save it the value is already limited to 100%. This can be verified by looking at the task tooltip or by exporting the task to the iCalendar format.

Happens only if the status is set to 'In Process' and '% complete' >= 100% in the dialog. If the status is set to 'Completed' or the '% complete' is set to 100% via task list context menu it works.
Still valid with recent Lightning 1.1a1pre nightly.

First a value greater than 100 is stored as 100%. When opening the event dialog, it seems that an if-else-block in function updateToDoStatus [1] is responsible for the described behaviour:
The status is not "completed"; the percent complete value is read and checked, and since it is not unequal to 100, it is told to be set to "".
Why is the dialog told to do this?


[1] http://mxr.mozilla.org/comm-central/source/calendar/base/content/dialogs/calendar-event-dialog.js#2216
This code goes way back to mozilla1.8, feel free to change it any way you like to fix this bug.
Attached patch patch_v1 — — Splinter Review
Maybe this is all we need then?
Show the percent complete value we have, no need to hide 100%...
Assignee: nobody → mozrob
Attachment #515518 - Flags: review?(philipp)
Status: NEW → ASSIGNED
Comment on attachment 515518 [details] [diff] [review]
patch_v1

Sounds reasonable to me, r=philipp
Attachment #515518 - Flags: review?(philipp) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/e066581ac82d>

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Trunk
Target Milestone: Trunk → 1.0b3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: