From ee289a9798df72f85790e5f35f85cbd1d69657e3 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 11 Apr 2013 15:40:18 +0600 Subject: [PATCH] [#19] fix error with pull request --- lib/modules/models/markdown.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/models/markdown.rb b/lib/modules/models/markdown.rb index 9b7a5fe14..6edc9f182 100644 --- a/lib/modules/models/markdown.rb +++ b/lib/modules/models/markdown.rb @@ -170,8 +170,8 @@ module Modules def reference_issue(identifier) if issue = Issue.find_by_hash_tag(identifier, current_ability, @project) if issue.pull_request - title = "#{PullRequest.model_name.human}: #{pull_request.title}" - project_pull_request_path(pull_request.to_project, pull_request) + title = "#{PullRequest.model_name.human}: #{issue.title}" + url = project_pull_request_path(issue.project, issue.pull_request) else title = "#{Issue.model_name.human}: #{issue.title}" url = project_issue_path(issue.project.owner, issue.project.name, issue.serial_id)