Skip to content

Commit

Permalink
Ensure the products controller can show deleted products
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Nov 30, 2023
1 parent 4729130 commit 279c333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/app/controllers/solidus_admin/products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 279c333

Please sign in to comment.