Store the report category.

This commit is contained in:
Andy Allan 2017-12-13 16:02:55 +00:00
parent 875e588348
commit 63992d83bd
11 changed files with 69 additions and 80 deletions

View file

@ -8,8 +8,6 @@ class ReportsController < ApplicationController
if create_new_report_params.present?
@report = Report.new
@report.issue = Issue.find_or_initialize_by(create_new_report_params)
path = "issues.report_strings." + @report.issue.reportable.class.name.to_s
@report_strings_yaml = t(path)
end
end
@ -34,6 +32,6 @@ class ReportsController < ApplicationController
end
def report_params
params[:report].permit(:details)
params[:report].permit(:details, :category)
end
end