add no_subcategories query param in url only if its true (#7439)

This commit is contained in:
Saurabh Patel 2019-04-29 12:40:59 +05:30 committed by Guo Xiang Tan
parent fe86941cb6
commit 1b1cfd4507
1 changed files with 3 additions and 1 deletions

View File

@ -382,7 +382,9 @@ class ListController < ApplicationController
# hacky columns get special handling
options[:topic_ids] = param_to_integer_list(:topic_ids)
options[:no_subcategories] = options[:no_subcategories] == 'true'
if options[:no_subcategories] == 'true'
options[:no_subcategories] = true
end
options
end