From: Jean-Philippe Lang Date: Fri, 14 Nov 2014 21:39:34 +0000 (+0000) Subject: Code cleanup. X-Git-Tag: 3.0.0~376 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=209babeedb3c6a9837d79c90db7f7ade2f184cce;p=redmine.git Code cleanup. git-svn-id: http://svn.redmine.org/redmine/trunk@13597 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f93755240..65cf3ad3e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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'