From: bradymiller Date: Wed, 7 Nov 2012 10:20:53 +0000 (-0800) Subject: Bug fix to correctly show patient form/note authors X-Git-Tag: whats-been-changed~493 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/ababe8c2d55ac6d28d533090b8e313c5bac09736 Bug fix to correctly show patient form/note authors --- diff --git a/interface/patient_file/encounter/forms.php b/interface/patient_file/encounter/forms.php index d2aae556e..02b80f7ff 100644 --- a/interface/patient_file/encounter/forms.php +++ b/interface/patient_file/encounter/forms.php @@ -310,7 +310,17 @@ if (is_numeric($pid)) { } echo "
"; - echo "$form_name by " . htmlspecialchars( $providerNameRes ) . " (" . xl('Collapse') . ")
"; + + // Figure out the correct author (encounter authors are the '$providerNameRes', while other + // form authors are the '$user['fname'] . " " . $user['lname']'). + if ($formdir == 'newpatient') { + $form_author = $providerNameRes; + } + else { + $form_author = $user['fname'] . " " . $user['lname']; + } + echo "$form_name by " . htmlspecialchars( $form_author ) . " (" . xl('Collapse') . ")"; + echo "\n"; echo ""; echo "";