mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Add order to supplied products in enterprise serializer so that products in exchanges are sorted alphabetically
This commit is contained in:
@@ -38,7 +38,7 @@ class Api::Admin::ForOrderCycle::EnterpriseSerializer < ActiveModel::Serializer
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user