Deleting a subtasks doesn't update parent's rgt & lft values
|Assignee:||Jean-Philippe Lang||% Done:|
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
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?