]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 14 Nov 2014 21:39:34 +0000 (21:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 14 Nov 2014 21:39:34 +0000 (21:39 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13597 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index f93755240165eb044f3f7c79b15fcc3df19efdc4..65cf3ad3efc541867b75c87f89ef56cd7f5f43fb 100644 (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'