Set cloned task parent to original task if original task has no parent

This commit is contained in:
allegroai 2022-09-29 19:30:13 +03:00
parent 238a47a197
commit e6dc4b7557

View File

@ -264,7 +264,7 @@ class TaskBLL:
parent_task = (
task.parent
if task.parent and not task.parent.startswith(deleted_prefix)
else None
else task.id
)
new_task = Task(
id=create_id(),