Skip to content

Commit 541e982

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/models/search/tag_search_form.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ 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+
@options[:wrangling_status] = "canonical" if @options[:canonical] = "T"
52+
@options[:wrangling_status] = "noncanonical" if @options[:canonical] = "F"
5253
end
5354

5455
def sort_columns

0 commit comments

Comments
 (0)