From 9bac4fda39540f1a5df7c607a18d6ac091aba2f8 Mon Sep 17 00:00:00 2001 From: cfapress Date: Thu, 14 Aug 2008 19:15:04 +0000 Subject: [PATCH] leave out patient if none associated with event --- .../default/views/month/ajax_template.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/month/ajax_template.html b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/month/ajax_template.html index 8b9c87b88..7213bed99 100644 --- a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/month/ajax_template.html +++ b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/month/ajax_template.html @@ -467,13 +467,20 @@ foreach ($providers as $provider) { $content .= $displayTime; //$content .= htmlspecialchars($event['apptstatus']); //$content .= ""; - $content .= ""; - $iTitle = "View Patient [".$fname." ".$lname."]"; - $content .= "".$iTitle.""; - //if ($catid == 1) $content .= ""; - //$content .= $lname; - //if ($catid == 1) $content .= ""; - $content .= ""; + if ($patientid) { + // include patient name and link to their details + $content .= ""; + $iTitle = "View Patient [".$fname." ".$lname."]"; + $content .= "".$iTitle.""; + //if ($catid == 1) $content .= ""; + //$content .= $lname; + //if ($catid == 1) $content .= ""; + $content .= ""; + } + else { + // no patient id, just output the category name + $content .= " ".$catname; + } } $divTitle .= "\n(double click to edit)"; -- 2.11.4.GIT