Skip to content

Commit d9d5e43

Browse files
committed
Merge branch 'development'
2 parents 20bfb13 + 10e4150 commit d9d5e43

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ GEM
225225
jquery-ui-rails (8.0.0)
226226
railties (>= 3.2.16)
227227
json (2.12.2)
228-
jwt (2.10.1)
228+
jwt (2.10.2)
229229
base64
230230
kamal (2.7.0)
231231
activesupport (>= 7.0)
@@ -266,7 +266,7 @@ GEM
266266
mime-types (3.7.0)
267267
logger
268268
mime-types-data (~> 3.2025, >= 3.2025.0507)
269-
mime-types-data (3.2025.0624)
269+
mime-types-data (3.2025.0701)
270270
mini_mime (1.1.5)
271271
mini_portile2 (2.8.9)
272272
minitest (5.25.5)
@@ -303,7 +303,7 @@ GEM
303303
pg_search (2.3.7)
304304
activerecord (>= 6.1)
305305
activesupport (>= 6.1)
306-
phonelib (0.10.9)
306+
phonelib (0.10.10)
307307
pp (0.6.2)
308308
prettyprint
309309
prawn (2.5.0)
@@ -434,7 +434,7 @@ GEM
434434
sprockets-rails
435435
tilt
436436
securerandom (0.4.1)
437-
selenium-webdriver (4.33.0)
437+
selenium-webdriver (4.34.0)
438438
base64 (~> 0.2)
439439
logger (~> 1.4)
440440
rexml (~> 3.2, >= 3.2.5)

app/controllers/lab_connect/diagnostic_reports_controller.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,18 @@ def set_diagnostic_report
2525
end
2626

2727
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)
28+
params.expect(diagnostic_report: [
29+
{ results_attributes: [ [
30+
:id,
31+
:lab_test_value_id,
32+
:value
33+
] ] },
34+
notes_attributes: [ [
35+
:id,
36+
:content,
37+
:department_id
38+
] ]
39+
])
3240
end
3341
end
3442
end

0 commit comments

Comments
 (0)