Fix search operators sometimes getting lost (#35190)
This commit is contained in:
parent
a9f2ec45da
commit
2e0a00ab46
2 changed files with 21 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class SearchQueryTransformer < Parslet::Transform
|
|||
private
|
||||
|
||||
def clauses_by_operator
|
||||
@clauses_by_operator ||= @clauses.compact.chunk(&:operator).to_h
|
||||
@clauses_by_operator ||= @clauses.compact.group_by(&:operator)
|
||||
end
|
||||
|
||||
def flags_from_clauses!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue