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