← Back to team overview

gtg-contributors team mailing list archive

question on refactoring

 

I just fixed bug https://bugs.edge.launchpad.net/gtg/+bug/529941
"subtask button creates two subtasks".
 The bug was caused by these two lines
  child_task.add_parent(parent_uid)
  parent_task.add_child(child_task.get_id())



question:
In my opinion, those lines  both do the same thing, which resulted in
having the subtask linked  to the parent twice. Am I correct, or I'm
missing something? I have yet to pick up fully the "best practices" to
follow after the refactoring.



Follow ups