[#19] fix error with pull request project
This commit is contained in:
parent
7c94715a4e
commit
ff0d5733aa
|
@ -183,7 +183,7 @@ module Modules
|
||||||
issue = Issue.find_by_hash_tag(identifier, current_ability, @project, '!')
|
issue = Issue.find_by_hash_tag(identifier, current_ability, @project, '!')
|
||||||
if pull_request = issue.pull_request
|
if pull_request = issue.pull_request
|
||||||
title = "#{PullRequest.model_name.human}: #{pull_request.title}"
|
title = "#{PullRequest.model_name.human}: #{pull_request.title}"
|
||||||
link_to(identifier, project_pull_request_path(pull_request.project, pull_request), html_options.merge(title: title, class: "gfm gfm-pull_request #{html_options[:class]}"))
|
link_to(identifier, project_pull_request_path(pull_request.to_project, pull_request), html_options.merge(title: title, class: "gfm gfm-pull_request #{html_options[:class]}"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue