]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/issues/_comments.html.erb
Use current_user instead of @user.
[rails.git] / app / views / issues / _comments.html.erb
index af9409662e19af58e749b82686232b72152a5e40..6c684c253b190a7c8899df9ba6fd297506b06060 100644 (file)
@@ -20,7 +20,7 @@
 </div>
 <br/>
 <div class="comment">
-  <%= form_for :issue_comment, :url => { :action => 'comment', :id => @issue.id, :user_id => @user.id } do |f| %>
+  <%= form_for :issue_comment, :url => { :action => 'comment', :id => @issue.id, :user_id => current_user.id } do |f| %>
   <%= richtext_area :issue_comment, :body, :cols => 10, :rows => 8, :required => true %>
   <%= label_tag t('issues.show.comments.reassign_param') %> <%= check_box_tag :reassign, true %>
   <br/>