Skip to content

Commit

Permalink
(fix) correctly set percent-complete for tasks from the list view (fi…
Browse files Browse the repository at this point in the history
…xes #3197)
  • Loading branch information
extrafu committed Sep 27, 2016
1 parent 5ada002 commit 84e170a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -8,6 +8,7 @@ Enhancements
- [eas] propagate message submission errors to EAS clients (#3774)

Bug fixes
- [web] correctly set percent-complete for tasks from the list view (#3197)
- [core] we now search in all domain sources for Apple Calendar
- [core] properly handle groups in Apple Calendar's delegation

Expand Down
9 changes: 7 additions & 2 deletions UI/Scheduler/UIxTaskEditor.m
Expand Up @@ -577,12 +577,17 @@ - (id) changeStatusAction
{
newStatus = [self queryParameterForKey: @"status"];
if ([newStatus intValue])
[todo setCompleted: [NSCalendarDate date]];
{
// -setCompleted will also set the status to "COMPLETED"
[todo setCompleted: [NSCalendarDate date]];
[todo setPercentComplete: @"100"];

}
else
{
// -setCompleted will also set the status to "IN-PROCESS"
[todo setCompleted: nil];
[todo setPercentComplete: @"0"];
[todo setStatus: @"IN-PROCESS"];
}
[[self clientObject] saveComponent: todo];
}
Expand Down

0 comments on commit 84e170a

Please sign in to comment.