Fixed bug where tasks assigned while offline would be reassigned to self after sync

pull/14/head
Sam Bosley 13 years ago
parent ea4b8ecbd1
commit 642f84f817

@ -56,6 +56,9 @@ public class ActFmSyncV2Provider extends SyncV2Provider {
@Override
public void pushRemoteModel(Task model) {
long userId = model.getValue(Task.USER_ID);
if (userId != Task.USER_ID_SELF && userId != ActFmPreferenceService.userId())
model.putTransitory(TaskService.TRANS_ASSIGNED, true);
actFmSyncService.pushTaskOnSave(model, model.getMergedValues());
}

Loading…
Cancel
Save