Pārlūkot izejas kodu

Redirect to reports overview instead of report after account action (#9639)

master
Eugen Rochko pirms 5 gadiem
committed by GitHub
vecāks
revīzija
9b8c7a9aad
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app/controllers/admin/account_actions_controller.rb

+ 1
- 1
app/controllers/admin/account_actions_controller.rb Parādīt failu

@@ -17,7 +17,7 @@ module Admin
account_action.save!

if account_action.with_report?
redirect_to admin_report_path(account_action.report)
redirect_to admin_reports_path
else
redirect_to admin_account_path(@account.id)
end


Notiek ielāde…
Atcelt
Saglabāt