Skip to content

Commit ea1e9f6

Browse files
committed
Match existing behavior for canonical 'T' and 'F'
1 parent d0128dc commit ea1e9f6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/models/search/tag_search_form.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ def set_fandoms
4646
end
4747

4848
def set_wrangling_status
49-
return unless @options[:canonical]
49+
return unless @options[:canonical].present?
5050

51-
@options[:wrangling_status] = "canonical"
51+
# Match old behavior for canonical param
52+
if %w(true 1 T).include?(@options[:canonical].to_s)
53+
@options[:wrangling_status] = "canonical"
54+
else
55+
@options[:wrangling_status] = "noncanonical"
56+
end
5257
end
5358

5459
def sort_columns

0 commit comments

Comments
 (0)