Fix bad database query for RSS feeds of trace file tags

This commit is contained in:
Tom Hughes 2012-02-19 11:48:33 +00:00
parent 71684afb29
commit 346b097d85

View file

@ -224,7 +224,7 @@ class TraceController < ApplicationController
end
if params[:tag]
traces = traces.where("EXISTS (SELECT * FROM gpx_file_tags AS gft WHERE gft.gpx_id = gpx_files.id AND gft.tag = ?)")
traces = traces.where("EXISTS (SELECT * FROM gpx_file_tags AS gft WHERE gft.gpx_id = gpx_files.id AND gft.tag = ?)", params[:tag])
end
traces = traces.order("timestamp DESC")