Skip to content

Commit

Permalink
fix(Patient History Settings): retrieve right medical_record_id in up…
Browse files Browse the repository at this point in the history
…date_medical_record

fix(Patient History Settings): retrieve right medical_record_id in update_medical_record method

(cherry picked from commit ae3a655)
  • Loading branch information
tamburro92 authored and akurungadam committed May 17, 2024
1 parent f66cbef commit a8df48e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def update_medical_record(doc, method=None):

if medical_record_id:
subject = set_subject_field(doc)
frappe.db.set_value("Patient Medical Record", medical_record_id[0][0], "subject", subject)
frappe.db.set_value("Patient Medical Record", medical_record_id, "subject", subject)
else:
create_medical_record(doc)

Expand Down

0 comments on commit a8df48e

Please sign in to comment.