Skip to content

Commit

Permalink
populate destroyed_by on produce_v3_controller#destory
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Jun 19, 2024
1 parent ef7f1d3 commit 7a015ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/products_v3_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def destroy
{ id: params[:id] }
).find_product

@record.destroyed_by = spree_current_user
status = :ok

if @record.destroy
flash.now[:success] = t('.delete_product.success')
else
Expand Down

0 comments on commit 7a015ba

Please sign in to comment.