diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 18:42:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 18:42:41 +0000 |
commit | 6550ef9df55f8f6cc1422e33c310d2e274fd456a (patch) | |
tree | 4bd49c1d4870a8ce8e59ac5a41c9cea029fc932e /vendor | |
parent | b972b5a647cae4cef4dfeb9686cb529705886107 (diff) | |
download | redmine-6550ef9df55f8f6cc1422e33c310d2e274fd456a.tar.gz redmine-6550ef9df55f8f6cc1422e33c310d2e274fd456a.zip |
Fixed: deleting a parent issue may lead to a stale object error (#7920).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5285 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb b/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb index fc5278d69..b2ebd669c 100644 --- a/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb +++ b/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb @@ -466,6 +466,9 @@ module CollectiveIdea #:nodoc: ["#{quoted_right_column_name} >= ?", right] ) end + + # Reload is needed because children may have updated their parent (self) during deletion. + reload end # reload left, right, and parent |