From 11121f49052313754790527e64eb0fc4be9780f9 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Wed, 15 Apr 2020 11:53:39 +0530 Subject: [PATCH] fix: patch for Healthcare Refactoring --- erpnext/patches/v12_0/update_healthcare_refactored_changes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v12_0/update_healthcare_refactored_changes.py b/erpnext/patches/v12_0/update_healthcare_refactored_changes.py index 02378e0922..d06c5713d2 100644 --- a/erpnext/patches/v12_0/update_healthcare_refactored_changes.py +++ b/erpnext/patches/v12_0/update_healthcare_refactored_changes.py @@ -100,7 +100,7 @@ def execute(): for entry in encounter_details: doc = frappe.get_doc('Patient Encounter', entry.name) - symptoms = entry.symptoms.split('\n') + symptoms = entry.symptoms.split('\n') if entry.symptoms else [] for symptom in symptoms: if not frappe.db.exists('Complaint', symptom): frappe.get_doc({ @@ -112,7 +112,7 @@ def execute(): }) row.db_update() - diagnosis = entry.diagnosis.split('\n') + diagnosis = entry.diagnosis.split('\n') if entry.diagnosis else [] for d in diagnosis: if not frappe.db.exists('Diagnosis', d): frappe.get_doc({