aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/comment_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-08-29 12:03:40 +0000
committerfrancis <francis>2008-08-29 12:03:40 +0000
commitb3fd97df9422a29b2c30f1783d13c9fa79617483 (patch)
tree0c0928fe10dcbdad69e1ee76e7254132d3b288e5 /app/controllers/comment_controller.rb
parent3cec731c9819545cb56d089a5211b36feb718fb3 (diff)
Do not show track field if already tracking.
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r--app/controllers/comment_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb
index 94abfe142..8ac6d3850 100644
--- a/app/controllers/comment_controller.rb
+++ b/app/controllers/comment_controller.rb
@@ -4,13 +4,14 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: comment_controller.rb,v 1.4 2008-08-29 11:57:57 francis Exp $
+# $Id: comment_controller.rb,v 1.5 2008-08-29 12:03:40 francis Exp $
class CommentController < ApplicationController
def new
if params[:type] == 'request'
@info_request = InfoRequest.find_by_url_title(params[:url_title])
+ @track_thing = TrackThing.create_track_for_request(@info_request)
@comment = Comment.new(params[:comment].merge({
:comment_type => 'request',
:user => @user