Deleter fix for physical exam form. Thanks to DataGroup for identifying the problem...
authorRod Roark <rod@sunsetsystems.com>
Fri, 1 Mar 2013 16:12:12 +0000 (1 08:12 -0800)
committerRod Roark <rod@sunsetsystems.com>
Fri, 1 Mar 2013 16:12:12 +0000 (1 08:12 -0800)
interface/patient_file/deleter.php

index b62c8bc..02f00fc 100644 (file)
@@ -109,6 +109,9 @@ function form_delete($formdir, $formid) {
     row_delete("procedure_order_code", "procedure_order_id = '$formid'");
     row_delete("procedure_order", "procedure_order_id = '$formid'");
   }
+  else if ($formdir == 'physical_exam') {
+    row_delete("form_$formdir", "forms_id = '$formid'");
+  }
   else {
     row_delete("form_$formdir", "id = '$formid'");
   }