diff --git a/app/controllers/admin/disputes_controller.rb b/app/controllers/admin/disputes_controller.rb index 8292bc464..02773e4c7 100644 --- a/app/controllers/admin/disputes_controller.rb +++ b/app/controllers/admin/disputes_controller.rb @@ -44,8 +44,8 @@ module Admin # DELETE /admin/disputes/1 def delete - @dispute.destroy - redirect_to admin_disputes_url, notice: 'Dispute was successfully destroyed.' + @dispute.update(closed: true) + redirect_to admin_disputes_url, notice: 'Dispute was successfully closed.' end private diff --git a/app/views/admin/disputes/index.html.erb b/app/views/admin/disputes/index.html.erb index eea74f59a..3a72e7d41 100644 --- a/app/views/admin/disputes/index.html.erb +++ b/app/views/admin/disputes/index.html.erb @@ -136,9 +136,6 @@