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

Can't set patient birthdate to current date #2957

Closed
DhanyaHerath opened this issue Jun 16, 2020 · 4 comments
Closed

Can't set patient birthdate to current date #2957

DhanyaHerath opened this issue Jun 16, 2020 · 4 comments
Assignees
Labels
Bug: production Bug was found or believed to be in a live release Docs: not needed Effort: small Small effort story/task, estimated 0-2 days Priority: high
Milestone

Comments

@DhanyaHerath
Copy link
Contributor

Describe the bug

I started creating a patient, and left the birth date as it was, and then clicked Save. Nothing happened, double-clicked and it showed an error.

To reproduce

Steps to reproduce the behavior:

  1. Go to New Patient
  2. Enter a first and last name
  3. Click Enter to move past date field, then click Save (twice, if nothing happens on first go)
  4. See error
    image

image

Expected behaviour

Should save the patient with the current date as their birthdate?

Proposed Solution

Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.

Version and device info

  • App version: v5.0.3
  • Tablet model: Emulator- Galaxy Tab A
  • OS version: Android 8.0

Additional context

Works fine if I change the birthdate to yesterday :)

@wlthomson
Copy link
Contributor

Hm, maybe a placeholder issue? What happens if you explicitly set the date to today?

@wlthomson
Copy link
Contributor

wlthomson commented Jun 16, 2020

Update: confirmed doesn't occur if the date is explicitly set, so looks like a placeholder issue.

@wlthomson wlthomson self-assigned this Jun 16, 2020
@wlthomson wlthomson added this to the 5.0.X milestone Jun 16, 2020
@wlthomson wlthomson added Bug: production Bug was found or believed to be in a live release Docs: not needed Effort: small Small effort story/task, estimated 0-2 days Module: dispensary Priority: high and removed 5.0.3 Priority: low labels Jun 16, 2020
wlthomson added a commit that referenced this issue Jun 18, 2020
…ent-default-date

#2957 add formatting to date input on submit callback
@wlthomson
Copy link
Contributor

Fixed by #2959.

@ArpitaSussol
Copy link

ArpitaSussol commented Jul 10, 2020

Tested in 5.1.1

Testing

  • Patient saves without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: production Bug was found or believed to be in a live release Docs: not needed Effort: small Small effort story/task, estimated 0-2 days Priority: high
Projects
None yet
Development

No branches or pull requests

3 participants