Skip to content
Browse files

Merge pull request #5 from mark-secondbureau/sort-order-typo-fix

sort order typo fix
  • Loading branch information...
2 parents d118a44 + f19d6d0 commit e2ce222c039e810ae7020b38b557643fba64686b @iloveitaly committed Jan 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/spree/search/spree_sunspot/search.rb
View
4 app/models/spree/search/spree_sunspot/search.rb
@@ -61,7 +61,7 @@ def prepare(params)
# ensure that :sort and :order are legit
@properties[:sort] = :score unless conf.sort_fields.keys.include? @properties[:sort]
- @properties[:order] = :desc unless [:desc, :asc].include? @properties[:sort]
+ @properties[:order] = :desc unless [:desc, :asc].include? @properties[:order]
conf.display_facets.each do |name|
@properties[name] ||= params["#{name}_facet"]
@@ -72,4 +72,4 @@ def prepare(params)
end
end
-end
+end

0 comments on commit e2ce222

Please sign in to comment.
Something went wrong with that request. Please try again.