1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-09 09:01:31 +00:00

Code cleanup.

git-svn-id: http://svn.redmine.org/redmine/trunk@13597 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-11-14 21:39:34 +00:00
parent eac3b2b27d
commit 209babeedb

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'