Merge ssh://github.com/lkempf/tasks into HEAD

pull/1962/head
Alex Baker 3 years ago
commit 8258c73a7f

@ -71,7 +71,13 @@ class TaskDuplicator @Inject constructor(
} }
val caldavTask = caldavDao.getTask(originalId) val caldavTask = caldavDao.getTask(originalId)
if (caldavTask != null) { if (caldavTask != null) {
caldavDao.insert(clone, CaldavTask(clone.id, caldavTask.calendar), addToTop) val newDavTask = CaldavTask(clone.id, caldavTask.calendar)
if (parentId != 0L)
{
val remoteParent = caldavDao.getRemoteIdForTask(parentId)
newDavTask.remoteParent = remoteParent
}
caldavDao.insert(clone, newDavTask, addToTop)
} }
for (g in locationDao.getGeofencesForTask(originalId)) { for (g in locationDao.getGeofencesForTask(originalId)) {
locationDao.insert( locationDao.insert(

Loading…
Cancel
Save