From 79d42dfc7b4089bbd06f4cc67a23f11cde4472ca Mon Sep 17 00:00:00 2001 From: Sherwin Gaddis Date: Tue, 1 Nov 2022 08:12:03 -0400 Subject: [PATCH] SQL error when disabling the encounter Class Option in globals. #5887 (#5888) --- interface/forms/newpatient/save.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/forms/newpatient/save.php b/interface/forms/newpatient/save.php index d8a7251ea19..8f4ac656649 100644 --- a/interface/forms/newpatient/save.php +++ b/interface/forms/newpatient/save.php @@ -38,7 +38,7 @@ $reason = $_POST['reason'] ?? null; $mode = $_POST['mode'] ?? null; $referral_source = $_POST['form_referral_source'] ?? null; -$class_code = $_POST['class_code'] ?? null; +$class_code = $_POST['class_code'] ?? ''; $pos_code = $_POST['pos_code'] ?? null; $in_collection = $_POST['in_collection'] ?? null; $parent_enc_id = $_POST['parent_enc_id'] ?? null;