Skip to content

Commit

Permalink
Fix Patient Issues show Incorrect Dates When Left Blank
Browse files Browse the repository at this point in the history
  • Loading branch information
xurror committed Mar 17, 2020
1 parent 9cf23e8 commit ffa7ea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
6 changes: 4 additions & 2 deletions interface/patient_file/summary/stats_full.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,10 @@ function newEncounter() {

echo " <tr class='$bgclass detail' $colorstyle>\n";
echo " <td style='text-align:left' data-text='$disptitle' class='$click_class' id='$rowid'>" . text($disptitle) . "</td>\n";
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['begdate']))) . "&nbsp;</td>\n";
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['enddate']))) . "&nbsp;</td>\n";
if ($row['begdate'] == '') echo " <td>" . 'N/A' . "&nbsp;</td>\n";
else echo " <td>" . text(date(DateFormatRead(true), strtotime($row['begdate']))) . "&nbsp;</td>\n";
if ($row['enddate'] == '') echo " <td>" . 'N/A' . "&nbsp;</td>\n";
else echo " <td>" . text(date(DateFormatRead(true), strtotime($row['enddate']))) . "&nbsp;</td>\n";
// both codetext and statusCompute have already been escaped above with htmlspecialchars)
echo " <td>" . $codetext . "</td>\n";
echo " <td>" . $statusCompute . "&nbsp;</td>\n";
Expand Down
26 changes: 0 additions & 26 deletions sites/default/sqlconf.php

This file was deleted.

0 comments on commit ffa7ea3

Please sign in to comment.