Defect #9577
closedDeleting a subtasks doesn't update parent's rgt & lft values
0%
Description
Hi,
yesterday I ran into a similar error related to subtasks:
Lets say you have a ticket with lets say 10 subtickets.
Remove one of the subtickets.
After that the db fields "lft" and "rgt" in the issues table are corrupt, they do not get updated in a correct manner.
I investigated the problem and found out that the error seems to be in the plugin
"awesome_nested_set" that is used by redmine itself.
Onfortunatley the version packed with redmine is old and buggy but seems customized so a simple replace may not work. (I'm not sure).
See the history of awesome_nested_set at
https://github.com/collectiveidea/awesome_nested_set/commits/master/lib/awesome_nested_set.rb
The bug fixes "Prevent the set from getting corrupted when destroying nodes with children" and "Fixed parent_id_changed? problem." should fix the sub tasks corruption and maybe a few more bugs in redmine!
F.e. Defect #8716 is probably related to this.
Maybe someone knows how to update this essential library?
Related issues