← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3555: Fixed bug when updating the blood group of a beneficiary

 

------------------------------------------------------------
revno: 3555
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-05-10 16:05:05 +0700
message:
  Fixed bug when updating the blood group of a beneficiary
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/UpdatePatientAction.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-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/UpdatePatientAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/UpdatePatientAction.java	2011-04-03 10:19:50 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/UpdatePatientAction.java	2011-05-10 09:05:05 +0000
@@ -102,6 +102,8 @@
 
     private String gender;
 
+    private String bloodGroup;
+	
     private boolean underAge;
 
     private Integer representativeId;
@@ -160,13 +162,15 @@
         // ---------------------------------------------------------------------
 
         patient.setGender( gender );
-
         patient.setIsDead( isDead );
+        patient.setBloodGroup( bloodGroup );
+		
         if ( deathDate != null )
         {
             deathDate = deathDate.trim();
             patient.setDeathDate( format.parseDate( deathDate ) );
         }
+		
         patient.setUnderAge( underAge );
         patient.setOrganisationUnit( organisationUnit );