We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b407268 commit 8f4457aCopy full SHA for 8f4457a
app/controllers/lab_connect/diagnostic_reports_controller.rb
@@ -25,10 +25,18 @@ def set_diagnostic_report
25
end
26
27
def diagnostic_report_params
28
- params.permit(diagnostic_report: [
29
- { results_attributes: %i[id lab_test_value_id value] },
30
- notes_attributes: %i[id content department_id]
31
- ]).require(:diagnostic_report)
+ params.expect(diagnostic_report: [
+ { results_attributes: [ [
+ :id,
+ :lab_test_value_id,
32
+ :value
33
+ ] ] },
34
+ notes_attributes: [ [
35
36
+ :content,
37
+ :department_id
38
+ ] ]
39
+ ])
40
41
42
0 commit comments