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 <[email protected]>
(cherry picked from commit c4bd75a)
  • Loading branch information
nvandoorn committed Feb 14, 2024
1 parent f6f24ca commit 0bef762
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 0bef762

Please sign in to comment.