diff options
author | ThibG <thib@sitedethib.com> | 2019-02-21 19:36:48 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-21 19:36:48 +0100 |
commit | 738c03421323fdc3b474307961fdaf1dbc0c37f8 (patch) | |
tree | a0951ba8eb96f0fe4c790788d58ff30e2a82e934 /app/controllers | |
parent | 4340d338fd2aa5665ffb2eb0cd54d689997234fe (diff) |
Do not error out when performing admin actions on no statuses (#10094)
Same as #8220 but for reports
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/reported_statuses_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/admin/reported_statuses_controller.rb b/app/controllers/admin/reported_statuses_controller.rb index d3c2f5e9e..3ba9f5df2 100644 --- a/app/controllers/admin/reported_statuses_controller.rb +++ b/app/controllers/admin/reported_statuses_controller.rb @@ -11,6 +11,10 @@ module Admin flash[:alert] = I18n.t('admin.statuses.failed_to_execute') unless @form.save redirect_to admin_report_path(@report) + rescue ActionController::ParameterMissing + flash[:alert] = I18n.t('admin.statuses.no_status_selected') + + redirect_to admin_report_path(@report) end private |