Skip to content

Commit 1fbe8a0

Browse files
committed
important but founded and fixed! fix: Associate lab tests with selected patient
1 parent f1fde9f commit 1fbe8a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/lab_tests_controller.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def set_user
125125
end
126126

127127
def build_lab_test
128-
@lab_test = current_user.lab_tests.build(lab_test_params)
128+
user = set_user
129+
@lab_test = user.lab_tests.build(lab_test_params)
129130
end
130131

131132
# Only allow a list of trusted parameters through.

0 commit comments

Comments
 (0)