← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11863: Fix bug - Validation of date fixed attribute person in custom registration form.

 

------------------------------------------------------------
revno: 11863
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-09-02 23:32:38 +0700
message:
  Fix bug - Validation of date fixed attribute person in custom registration form.
modified:
  dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientRegistrationFormService.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientRegistrationFormService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientRegistrationFormService.java	2013-08-23 16:05:01 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientRegistrationFormService.java	2013-09-02 16:32:38 +0000
@@ -439,11 +439,11 @@
             if ( fixedAttr.equals( PatientRegistrationForm.FIXED_ATTRIBUTE_BIRTHDATE )
                 || fixedAttr.equals( PatientRegistrationForm.FIXED_ATTRIBUTE_REGISTRATION_DATE ) )
             {
-                inputHtml += "<script>datePicker(\"" + fixedAttr + "\", true);</script>";
+                inputHtml += "<script>datePickerValid(\"" + fixedAttr + "\", true);</script>";
             }
             else
             {
-                inputHtml += "<script>datePicker(\"" + fixedAttr + "\", false);</script>";
+                inputHtml += "<script>datePickerValid(\"" + fixedAttr + "\", false);</script>";
             }
         }