@@ -197,7 +197,7 class Changeset < ActiveRecord::Base | |||
|
197 | 197 | # Finds an issue that can be referenced by the commit message |
|
198 | 198 | def find_referenced_issue_by_id(id) |
|
199 | 199 | return nil if id.blank? |
|
200 | issue = Issue.find_by_id(id.to_i, :include => :project) | |
|
200 | issue = Issue.includes(:project).where(:id => id.to_i).first | |
|
201 | 201 | if Setting.commit_cross_project_ref? |
|
202 | 202 | # all issues can be referenced/fixed |
|
203 | 203 | elsif issue |
General Comments 0
You need to be logged in to leave comments.
Login now