From 679f9a861b740be80c20467c5dffea7f0b89cc4c Mon Sep 17 00:00:00 2001 From: Ramon Bartl Date: Sun, 7 May 2023 07:22:07 +0200 Subject: [PATCH] Use client folder if client local patients are allowed --- src/senaite/patient/subscribers/analysisrequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/senaite/patient/subscribers/analysisrequest.py b/src/senaite/patient/subscribers/analysisrequest.py index 7b15998..11e69d5 100644 --- a/src/senaite/patient/subscribers/analysisrequest.py +++ b/src/senaite/patient/subscribers/analysisrequest.py @@ -97,7 +97,7 @@ def update_patient(instance): if patient is None: if patient_api.is_patient_allowed_in_client(): # create the patient in the client - container = patient_api.get_patient_folder() + container = instance.getClient() else: # create the patient in the global patients folder container = patient_api.get_patient_folder()