Perf: don't load parent message for generating a link.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9904 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bf69f9af9f
commit
df41255105
|
@ -128,7 +128,7 @@ module ApplicationHelper
|
|||
h(truncate(message.subject, :length => 60)),
|
||||
{ :controller => 'messages', :action => 'show',
|
||||
:board_id => message.board_id,
|
||||
:id => message.root,
|
||||
:id => (message.parent_id || message.id),
|
||||
:r => (message.parent_id && message.id),
|
||||
:anchor => (message.parent_id ? "message-#{message.id}" : nil)
|
||||
}.merge(options),
|
||||
|
|
Loading…
Reference in New Issue