From c5e2ed5aa1ccc2230310cb2d3ccac51d90294431 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 17 Nov 2015 13:36:14 +1100 Subject: [PATCH] Order outgoing products by name --- .../order_cycles/_exchange_distributed_products_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml b/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml index 1616561a8d..98ede13681 100644 --- a/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml +++ b/app/views/admin/order_cycles/_exchange_distributed_products_form.html.haml @@ -5,7 +5,7 @@ Select all -# Scope product list based on permissions the current user has to view variants in this exchange - .exchange-product{'ng-repeat' => 'product in supplied_products | filter:productSuppliedToOrderCycle | visibleProducts:exchange:order_cycle.visible_variants_for_outgoing_exchanges' } + .exchange-product{'ng-repeat' => 'product in supplied_products | filter:productSuppliedToOrderCycle | visibleProducts:exchange:order_cycle.visible_variants_for_outgoing_exchanges | orderBy:"name"' } .exchange-product-details .supplier {{ product.supplier_name }} %label