dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22600
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10905: Error when to run validation of person registration form.
------------------------------------------------------------
revno: 10905
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-05-21 11:18:19 +0700
message:
Error when to run validation of person registration form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewPatientRegistationForm.js
--
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-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java 2013-05-21 04:05:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java 2013-05-21 04:18:19 +0000
@@ -178,7 +178,7 @@
// Set Other information for patient
// ---------------------------------------------------------------------
- phoneNumber = (phoneNumber.trim().equals( systemSettingManager
+ phoneNumber = (phoneNumber!=null && phoneNumber.trim().equals( systemSettingManager
.getSystemSetting( SystemSettingManager.KEY_PHONE_NUMBER_AREA_CODE ) )) ? null : phoneNumber;
patient.setGender( gender );
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java 2013-05-21 04:05:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java 2013-05-21 04:18:19 +0000
@@ -178,7 +178,7 @@
// Set Other information for patient
// ---------------------------------------------------------------------
- phoneNumber = (phoneNumber.trim().equals( systemSettingManager
+ phoneNumber = (phoneNumber!=null && phoneNumber.trim().equals( systemSettingManager
.getSystemSetting( SystemSettingManager.KEY_PHONE_NUMBER_AREA_CODE ) )) ? null : phoneNumber;
patient.setGender( gender );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewPatientRegistationForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewPatientRegistationForm.js 2013-05-18 06:51:47 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewPatientRegistationForm.js 2013-05-21 04:18:19 +0000
@@ -146,7 +146,7 @@
jQuery('#programAttrSelector option').each(function() {
var item = jQuery(this);
if( item.attr('mandatory')=='true'){
- requiredFields['attributeid=' + item.val()] = item.text();
+ requiredFields['programid=' + item.val()] = item.text();
}
});