Skip to content

Commit

Permalink
Add order to supplied products in enterprise serializer so that produ…
Browse files Browse the repository at this point in the history
…cts in exchanges are sorted alphabetically
  • Loading branch information
luisramos0 committed Nov 12, 2019
1 parent 1c72378 commit 6e51be0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def products_scope
if order_cycle.prefers_product_selection_from_coordinator_inventory_only?
products_relation = products_relation.visible_for(order_cycle.coordinator)
end
products_relation
products_relation.order(:name)
end

def products
Expand Down

0 comments on commit 6e51be0

Please sign in to comment.