Commit 37a214de authored by Eugen Rochko's avatar Eugen Rochko Committed by Nathan Ladd
Browse files

Fix error when searching for empty phrase (#12711)

Fix #12619
parent 096bf9ca
......@@ -78,7 +78,7 @@ class SearchQueryTransformer < Parslet::Transform
elsif clause[:shortcode], operator, ":#{clause[:term]}:")
elsif clause[:phrase], operator, clause[:phrase].map { |p| p[:term].to_s }.join(' ')), operator, clause[:phrase].is_a?(Array) ? clause[:phrase].map { |p| p[:term].to_s }.join(' ') : clause[:phrase].to_s)
raise "Unexpected clause type: #{clause}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment