diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-28 11:00:31 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-28 11:00:31 +0100 |
commit | 07b8c95e66d8709b4bfbc52443ea227ff43097db (patch) | |
tree | 6df1aaa9ec4e787b1c09ee1e2e739ed315e18f30 /app/controllers/admin_comment_controller.rb | |
parent | e936b687a7df62dc69d1cc0493492346bd8e300a (diff) | |
parent | 0d25d79a48ea227ec685e44ec22990e1da748972 (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'app/controllers/admin_comment_controller.rb')
-rw-r--r-- | app/controllers/admin_comment_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_comment_controller.rb b/app/controllers/admin_comment_controller.rb index eed328b34..030afb645 100644 --- a/app/controllers/admin_comment_controller.rb +++ b/app/controllers/admin_comment_controller.rb @@ -16,7 +16,7 @@ class AdminCommentController < AdminController old_body = @comment.body old_visible = @comment.visible - @comment.visible = params[:comment][:visible] == "true" ? true : false + @comment.visible = params[:comment][:visible] == "true" if @comment.update_attributes(params[:comment]) @comment.info_request.log_event("edit_comment", |