Fixed some sync bugs when cloning featured lists

pull/14/head
Sam Bosley 12 years ago
parent bf955399b9
commit 345673d40d

@ -140,6 +140,7 @@ public class FeaturedTaskListFragment extends TagViewFragment {
} else { } else {
clone = new TagData(); clone = new TagData();
clone.setValue(TagData.NAME, localName); clone.setValue(TagData.NAME, localName);
tagDataService.save(clone);
} }
} finally { } finally {

@ -229,11 +229,13 @@ public class TaskService {
newTask.clearValue(Task.UUID); newTask.clearValue(Task.UUID);
newTask.clearValue(Task.USER); newTask.clearValue(Task.USER);
newTask.clearValue(Task.USER_ID); newTask.clearValue(Task.USER_ID);
newTask.clearValue(Task.IS_READONLY);
newTask.clearValue(Task.IS_PUBLIC);
taskDao.save(newTask); taskDao.save(newTask);
if (!RemoteModel.NO_UUID.equals(tagUuid)) { if (!RemoteModel.isUuidEmpty(tagUuid)) {
TagService.getInstance().createLink(task, tagName, tagUuid); TagService.getInstance().createLink(newTask, tagName, tagUuid);
} }
return newTask; return newTask;
} }

Loading…
Cancel
Save