Skip to content

Commit

Permalink
Remove order by sku from variant scope
Browse files Browse the repository at this point in the history
This "fixes" the variant scope issue but I'm not sure it's the solution
we want. I suppose it depends if ordering by sku is important here.

Co-authored-by: An Stewart <andrew@super.gd>
  • Loading branch information
nvandoorn and stewart committed Feb 13, 2024
1 parent 2409038 commit c4bd75a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def load_stock_management_data
def variant_scope
scope = Spree::Variant
.accessible_by(current_ability)
.distinct.order(:sku)
.distinct
.includes(
:images,
stock_items: :stock_location,
Expand Down

0 comments on commit c4bd75a

Please sign in to comment.