Browse Source

Code cleanup.

git-svn-id: http://svn.redmine.org/redmine/trunk@13597 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.0.0
Jean-Philippe Lang 9 years ago
parent
commit
209babeedb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/helpers/application_helper.rb

+ 2
- 2
app/helpers/application_helper.rb View File

@@ -791,7 +791,7 @@ module ApplicationHelper
case prefix
when nil
if oid.to_s == identifier &&
issue = Issue.visible.includes(:status).find_by_id(oid)
issue = Issue.visible.find_by_id(oid)
anchor = comment_id ? "note-#{comment_id}" : nil
link = link_to(h("##{oid}#{comment_suffix}"),
{:only_path => only_path, :controller => 'issues',
@@ -810,7 +810,7 @@ module ApplicationHelper
:class => 'version'
end
when 'message'
if message = Message.visible.includes(:parent).find_by_id(oid)
if message = Message.visible.find_by_id(oid)
link = link_to_message(message, {:only_path => only_path}, :class => 'message')
end
when 'forum'

Loading…
Cancel
Save