Skip to content

Commit

Permalink
dont add order to param when its the default order
Browse files Browse the repository at this point in the history
  • Loading branch information
axelerator committed Oct 9, 2017
1 parent e0f6ca3 commit 9ef15eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/forty_facets/facet_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def params
sum[filter.definition.request_param] = filter.value.dup unless filter.empty?
sum
end
params[:order] = order.definition.request_value if order
params[:order] = order.definition.request_value if order && order != @orders.find {|o| o.definition.default}
params
end

Expand Down
2 changes: 1 addition & 1 deletion lib/forty_facets/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FortyFacets
VERSION = "0.1.7"
VERSION = "0.1.8"
end

0 comments on commit 9ef15eb

Please sign in to comment.