Optimize updates of issue's shared versions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3137 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2009-12-08 20:47:52 +00:00
1 parent 8f85ba79bc
commit 0fe389b841
3 files changed
+27 -10

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ private
if VERSION_SHARINGS.index(sharing_was).nil? ||
VERSION_SHARINGS.index(sharing).nil? ||
VERSION_SHARINGS.index(sharing_was) > VERSION_SHARINGS.index(sharing)
Issue.update_fixed_versions_from_sharing_change ["fixed_version_id = ? AND #{Issue.table_name}.project_id <> ?", id, project_id]
Issue.update_versions_from_sharing_change self
end
end
end