FIX: parameterize tag_id

This commit is contained in:
Arpit Jalan 2018-04-14 16:42:53 +05:30
parent 637bef0c3c
commit 18f50ca01a

View File

@ -368,7 +368,7 @@ class ListController < ApplicationController
def build_topic_list_options
options = {}
params[:page] = params[:page].to_i rescue 1
params[:tags] = [params[:tag_id]] if params[:tag_id].present? && guardian.can_tag_pms?
params[:tags] = [params[:tag_id].parameterize] if params[:tag_id].present? && guardian.can_tag_pms?
TopicQuery.public_valid_options.each do |key|
options[key] = params[key]