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

Add error checking to relationship start/end dates on patient dashboard - TRUNK-3293 #103

Closed
wants to merge 1 commit into from

Conversation

AdamLauz
Copy link
Member

@wluyima
Copy link
Member

wluyima commented Nov 26, 2012

I thought you needed to add a validator and do this validation on the server side

@@ -192,6 +192,10 @@
var relId = $j("#editRelationship #edit_relationship_id").val();
var startDate = $j("#editRelationship #edit_rel_start_date").val();
var endDate = $j("#editRelationship #edit_rel_end_date").val();
if (Date.parse(startDate) > Date.parse(endDate)) {
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 correct. startDate and endDate may not be in a format that parse expects. I'd validate it on the server side.

@wluyima wluyima closed this Aug 19, 2013
RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
…sts (openmrs#103)

* Disable workbox logging by default.

* Added a global event for failed network requests.

* Fixed line endings.

* Prettier.
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