From 279c3330c0e732fab55bd0f4668d87086957d8dc Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Thu, 30 Nov 2023 10:43:12 +0100 Subject: [PATCH] Ensure the products controller can show deleted products --- admin/app/controllers/solidus_admin/products_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/app/controllers/solidus_admin/products_controller.rb b/admin/app/controllers/solidus_admin/products_controller.rb index 997282b05d..5479bbe651 100644 --- a/admin/app/controllers/solidus_admin/products_controller.rb +++ b/admin/app/controllers/solidus_admin/products_controller.rb @@ -32,7 +32,7 @@ def edit end def show - @product = Spree::Product.friendly.find(params[:id]) + @product = Spree::Product.with_discarded.friendly.find(params[:id]) respond_to do |format| format.html { render component('products/show').new(product: @product) }