From ec91d717c79a0e83cc9be93db976e6b674585123 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Sat, 13 Sep 2025 01:31:38 +0500 Subject: [PATCH] Fix default sorting for 'on_hand' column to 'name asc' in admin products table --- app/views/admin/products_v3/_table.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/products_v3/_table.html.haml b/app/views/admin/products_v3/_table.html.haml index eaa399d36b..4189149d81 100644 --- a/app/views/admin/products_v3/_table.html.haml +++ b/app/views/admin/products_v3/_table.html.haml @@ -60,7 +60,7 @@ %th.align-left.col-unit.with-input= t('admin.products_page.columns.unit') %th.align-left.col-price.with-input= t('admin.products_page.columns.price') = render partial: 'spree/admin/shared/stimulus_sortable_header', - locals: { column: :on_hand, sorted: params.dig(:q, :s), default: 'on_hand asc' } + locals: { column: :on_hand, sorted: params.dig(:q, :s), default: 'name asc' } %th.align-left.col-producer= t('admin.products_page.columns.producer') %th.align-left.col-category= t('admin.products_page.columns.category') %th.align-left.col-tax_category= t('admin.products_page.columns.tax_category')