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
Updated by Jean-Philippe Lang about 13 years ago
- Status changed from New to Confirmed
- Assignee set to Jean-Philippe Lang
Updated by Jean-Philippe Lang about 13 years ago
- Subject changed from Subtasks get corrupt: Please update the plugin "awesome_nested_set" to Deleting a subtasks doesn't update parent's rgt & lft values
- Category set to Issues
- Target version set to 1.2.3
Fixed in r7814.
Updated by Jean-Philippe Lang about 13 years ago
- Status changed from Confirmed to Resolved
- Resolution set to Fixed