From f743dbb49a82ccd38a4c24a682c60a1ae1663258 Mon Sep 17 00:00:00 2001 From: francis Date: Mon, 12 May 2008 08:35:24 +0000 Subject: Generalise links to tracking. --- app/controllers/request_controller.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 7bf2deba0..a4d8beba6 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.81 2008-05-12 01:53:41 francis Exp $ +# $Id: request_controller.rb,v 1.82 2008-05-12 08:35:24 francis Exp $ class RequestController < ApplicationController @@ -40,9 +40,8 @@ class RequestController < ApplicationController @info_requests_same_user_same_body_more = true end - # Already tracking? + # Track corresponding to this page @track_thing = TrackThing.create_track_for_request(@info_request) - @existing_track = TrackThing.find_by_existing_track(@user, @track_thing.track_query) end def list @@ -52,9 +51,8 @@ class RequestController < ApplicationController @title = "Recently sent Freedom of Information requests" query = "variety:sent"; sortby = "newest" - # Already tracking? - @track_thing = TrackThing.create_track_for_all_new_requests() - @existing_track = TrackThing.find_by_existing_track(@user, @track_thing.track_query) + # Track corresponding to this page + @track_thing = TrackThing.create_track_for_all_new_requests elsif @view == 'successful' @title = "Recent successful responses" query = 'variety:response (status:successful OR status:partially_successful)' -- cgit v1.2.3