Fix bad database query for RSS feeds of trace file tags
This commit is contained in:
parent
71684afb29
commit
346b097d85
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue