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

Conversation

ahanipeitra1994
Copy link
Contributor

@ahanipeitra1994 ahanipeitra1994 commented Jun 19, 2020

This is a fix on issue #1555. The Patient 'Issues' now does not display incorrect date without entry.

@ahanipeitra1994 ahanipeitra1994 changed the title Fix in Patient Issues Showing Incorrect Date Fix in Patient Issues Showing Incorrect Date When left Blank Jun 19, 2020
@Ngai-E
Copy link
Collaborator

Ngai-E commented Jun 19, 2020

This is a fix in issue #1555. The Patient 'Issues' now does not display incorrect date without entry.

please can you send us a screenshot of the fix.

@ahanipeitra1994
Copy link
Contributor Author

ahanipeitra1994 commented Jun 19, 2020 via email

@ahanipeitra1994
Copy link
Contributor Author

ahanipeitra1994 commented Jun 19, 2020 via email

echo " <td>" . text(date(DateFormatRead(true), strtotime($row['begdate']))) . "&nbsp;</td>\n";
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['enddate']))) . "&nbsp;</td>\n";
echo " <td>" . text($row['begdate']) . "&nbsp;</td>\n";
echo " <td>" . text($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.

This is not the right approach! Just check if the value is NULL or "" then show a default -, the functions there are not be removed

@ahanipeitra1994
Copy link
Contributor Author

ahanipeitra1994 commented Jun 26, 2020 via email

@ahanipeitra1994
Copy link
Contributor Author

ahanipeitra1994 commented Jun 26, 2020 via email

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

@ahanipeitra1994
Copy link
Contributor Author

ahanipeitra1994 commented Jul 4, 2020 via email

@maggienegm
Copy link
Contributor

@ahanipeitra1994 it seems to still show the default timedate for me, even with date(). Can you push the if/else statements that you used? We can help guide you to a working solution if we can see the code.

@ahanipeitra1994
Copy link
Contributor Author

ok i will do that

Copy link
Collaborator

@Ngai-E Ngai-E left a comment

Choose a reason for hiding this comment

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

looks better. Will test this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants