Fix bug introduced in r16011 with link to new message from diary entry.
authorThomas Wood <grand.edgemaster@gmail.com>
Sat, 20 Jun 2009 22:28:11 +0000 (22:28 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Sat, 20 Jun 2009 22:28:11 +0000 (22:28 +0000)
(Thanks shaun for spotting this)

app/views/diary_entry/_diary_entry.html.erb

index c69d26f..082231b 100644 (file)
@@ -8,7 +8,7 @@
 <br />
 <%= link_to t('diary_entry.diary_entry.comment_link'), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'newcomment' %>
 |
-<%= link_to t('diary_entry.diary_entry.reply_link'), :controller => 'message', :action => 'new', :user_id => diary_entry.user.id, :title => "Re: #{diary_entry.title}" %>
+<%= link_to t('diary_entry.diary_entry.reply_link'), :controller => 'message', :action => 'new', :display_name => diary_entry.user.display_name, :title => "Re: #{diary_entry.title}" %>
 |
 <%= link_to t('diary_entry.diary_entry.comment_count', :count => diary_entry.diary_comments.count), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'comments' %>
 <% end %>