Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix in Patient Issues Showing Incorrect Date When left Blank #1617

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interface/patient_file/summary/stats_full.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ 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($row['begdate']) . "&nbsp;</td>\n";
echo " <td>" . text($row['enddate']) . "&nbsp;</td>\n";
echo " <td>" . text(date(DateFormatRead(true), date($row['begdate']))) . "&nbsp;</td>\n";
echo " <td>" . text(date(DateFormatRead(true), date($row['enddate']))) . "&nbsp;</td>\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we need some if/else statement here for blank dates

// both codetext and statusCompute have already been escaped above with htmlspecialchars)
echo " <td>" . $codetext . "</td>\n";
echo " <td>" . $statusCompute . "&nbsp;</td>\n";
Expand Down