[#19] fix url to issue

This commit is contained in:
Alexander Machehin 2013-04-08 23:48:45 +06:00
parent c47a4d9c59
commit 8a09770e9d
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ module Modules
def reference_issue(identifier)
if issue = Issue.find_by_hash_tag(identifier, current_ability, @project)
url = project_issue_path(@project.owner, @project.name, issue.serial_id)
url = project_issue_path(issue.project.owner, issue.project.name, issue.serial_id)
title = "#{Issue.model_name.human}: #{issue.title}"
link_to(identifier, url, html_options.merge(title: title, class: "gfm gfm-issue #{html_options[:class]}"))
end