diff options
author | francis <francis> | 2008-05-15 22:57:08 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-15 22:57:08 +0000 |
commit | 3aaa9212960966f132049333f56cb7126a6139f8 (patch) | |
tree | 6255b20c9890ed6484d49b3e40d331376beb42e8 /app/controllers/track_controller.rb | |
parent | cac4f2bb8a71c19ab74820c051bb1b2c6ce5a08e (diff) |
Find existing tracks more precisely, rather than hitting ones with same
query but different type.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index b37afc6d5..baa7b98eb 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: track_controller.rb,v 1.18 2008-05-15 22:47:16 francis Exp $ +# $Id: track_controller.rb,v 1.19 2008-05-15 22:57:08 francis Exp $ class TrackController < ApplicationController @@ -115,7 +115,7 @@ class TrackController < ApplicationController # Generic request tracker - set @track_thing before calling def track_set if @user - @existing_track = TrackThing.find_by_existing_track(@user, @track_thing.track_query) + @existing_track = TrackThing.find_by_existing_track(@user, @track_thing) if @existing_track return "already" end |