diff --git a/app/models/version.rb b/app/models/version.rb index fa9eb28e..4ed6a4e9 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -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