]> source.dussan.org Git - redmine.git/commitdiff
No need to update issues from the version's project.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 8 Dec 2009 16:25:27 +0000 (16:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 8 Dec 2009 16:25:27 +0000 (16:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3136 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/version.rb

index fa9eb28e72937e182d17a3a583d3346bf4d05640..4ed6a4e9e6f43686d077808438465fb567ead0bf 100644 (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 = ?', id]
+        Issue.update_fixed_versions_from_sharing_change ["fixed_version_id = ? AND #{Issue.table_name}.project_id <> ?", id, project_id]
       end
     end
   end