mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-15 02:08:51 +00:00
(fix) correctly set percent-complete for tasks from the list view (fixes #3197)
This commit is contained in:
1
NEWS
1
NEWS
@@ -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
|
||||
|
||||
|
||||
@@ -577,12 +577,17 @@
|
||||
{
|
||||
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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user