Skip to content

Commit

Permalink
Merge pull request #5822 from luisramos0/improve_ocs_perf
Browse files Browse the repository at this point in the history
Performance improvement of the outgoing products page when editing OCs
  • Loading branch information
luisramos0 committed Jul 31, 2020
2 parents bee7990 + 2aa6c70 commit b025d5a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def products_scope
products_relation = object.supplied_products
if order_cycle.prefers_product_selection_from_coordinator_inventory_only?
products_relation = products_relation.
visible_for(order_cycle.coordinator).
select('DISTINCT spree_products.*')
visible_for(order_cycle.coordinator)
end
products_relation
end
Expand Down

0 comments on commit b025d5a

Please sign in to comment.