Skip to content

Commit 8fbe989

Browse files
committed
Do not show merged orders in admin
Merged orders are basically dead orders, they don't have any meaningful information (line items are moved to the surviving order of the merge process ) so there's not much value in displaying them on the backend.
1 parent a90027b commit 8fbe989

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/app/controllers/spree/admin/orders_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def index
4949
params[:q][:completed_at_lt] = params[:q].delete(:created_at_lt)
5050
end
5151

52-
@search = Spree::Order.accessible_by(current_ability, :index).ransack(params[:q])
52+
@search = Spree::Order.not_merged.accessible_by(current_ability, :index).ransack(params[:q])
5353
@orders = @search.result.includes([:user]).
5454
page(params[:page]).
5555
per(params[:per_page] || Spree::Config[:orders_per_page])

0 commit comments

Comments
 (0)