dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24509
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12025: fix bug
------------------------------------------------------------
revno: 12025
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-09-10 22:20:42 +0700
message:
fix bug
modified:
dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/LWUITmodel/Patient.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-mobile/src/main/java/org/hisp/dhis/api/mobile/model/LWUITmodel/Patient.java'
--- dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/LWUITmodel/Patient.java 2013-09-10 11:29:23 +0000
+++ dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/LWUITmodel/Patient.java 2013-09-10 15:20:42 +0000
@@ -661,6 +661,23 @@
{
this.enrollmentRelationships = null;
}
+
+ int numbCompletedPrograms = din.readInt();
+ if ( numbCompletedPrograms > 0 )
+ {
+ this.completedPrograms = new ArrayList<Program>();
+ for ( int i = 0; i < numbCompletedPrograms; i++ )
+ {
+ Program program = new Program();
+ program.deSerialize( din );
+ this.completedPrograms.add( program );
+
+ }
+ }
+ else
+ {
+ this.completedPrograms = null;
+ }
}
@Override