Skip to content

Commit

Permalink
Set PercentCompleted after setting the task status in TaskMapper to a…
Browse files Browse the repository at this point in the history
…void that the value gets lost if status in not in progress.
  • Loading branch information
aluxnimm committed Nov 15, 2017
1 parent 5fbf349 commit 0950ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CalDavSynchronizer/Implementation/Tasks/TaskMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,10 @@ public ITaskItemWrapper Map2To1 (ITodo source, ITaskItemWrapper target, IEntityM
target.Inner.Complete = false;
}

target.Inner.PercentComplete = source.PercentComplete;

target.Inner.Status = (target.Inner.Complete && target.Inner.PercentComplete == 100) ? OlTaskStatus.olTaskComplete : MapStatus2To1 (source.Status);

target.Inner.PercentComplete = source.PercentComplete;

if (_configuration.MapPriority)
target.Inner.Importance = CommonEntityMapper.MapPriority2To1 (source.Priority);

Expand Down

0 comments on commit 0950ecc

Please sign in to comment.