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

TRUNK-2779 Clean up patient birthdate error #446

Merged
merged 0 commits into from Nov 18, 2013

Conversation

eckelt
Copy link
Contributor

@eckelt eckelt commented Nov 9, 2013

Found a source of an issue:

getRelationshipsMap(@ModelAttribute("patientModel") ShortPatientModel patientModel, WebRequest request)

method didn't have a parameter of type BindingResult which meant that when 'patientModel' parameter was bound BindingException was always thrown which in turn stopped all processing and saveShortPatient() method was never called. This in turn caused exception to be propagated down the stack and resulted in error page being shown. When BindingResult parameter is added, errors are stored within it and no exception is thrown which causes correct error message to be shown when patient's birthdate is incorrect.

@MrMarvin
Copy link
Contributor

Nils, I'd kindly ask you to remove and reopen this pull request as you opened it from openmrs-codejam-hamburg:master and not a topic branch. Since we had some rebasing on our fork to clean up, I moved this commit into its own branch TRUNK-2779

@dkayiwa dkayiwa merged commit bbbd572 into openmrs:master Nov 18, 2013
@dkayiwa
Copy link
Member

dkayiwa commented Dec 2, 2013

Nil, did you do this?

@eckelt
Copy link
Contributor Author

eckelt commented Jan 11, 2014

I wasn't available for a while. Sry. I have developed the fix and was now going to move it to a branch, but have now seen that you've already merged my changes. Thank you.
Is there anything left you need from me?

RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
* Migration first draft

* Adding some links

* Troubleshooting

* React-router-dom and Carbon v11 notes

* Improved React description

* again

* Spellcheck

* skip link check

* Invisible spacing adjustments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants