diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-23 22:37:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 22:37:23 +0200 |
commit | 73ca0bb925cb036f824262ab292a157a40a515d0 (patch) | |
tree | 06373f7b57dc3976a647d703204505b49ec64e61 /app/controllers/admin | |
parent | 37f612074efeb793fafbe19c90698b98b278447d (diff) |
Add option to include reported statuses in warning e-mail (#11639)
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/account_actions_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/account_actions_controller.rb b/app/controllers/admin/account_actions_controller.rb index a2cea461e..ea56fa0ac 100644 --- a/app/controllers/admin/account_actions_controller.rb +++ b/app/controllers/admin/account_actions_controller.rb @@ -5,7 +5,7 @@ module Admin before_action :set_account def new - @account_action = Admin::AccountAction.new(type: params[:type], report_id: params[:report_id], send_email_notification: true) + @account_action = Admin::AccountAction.new(type: params[:type], report_id: params[:report_id], send_email_notification: true, include_statuses: true) @warning_presets = AccountWarningPreset.all end @@ -30,7 +30,7 @@ module Admin end def resource_params - params.require(:admin_account_action).permit(:type, :report_id, :warning_preset_id, :text, :send_email_notification) + params.require(:admin_account_action).permit(:type, :report_id, :warning_preset_id, :text, :send_email_notification, :include_statuses) end end end |