dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24947
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12279: minor bugfixes for required attribute checker in PersonService
------------------------------------------------------------
revno: 12279
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-09-27 13:33:03 +0200
message:
minor bugfixes for required attribute checker in PersonService
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.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-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.java 2013-09-27 10:43:38 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.java 2013-09-27 11:33:03 +0000
@@ -556,11 +556,11 @@
Collection<PatientAttribute> patientAttributes = manager.getAll( PatientAttribute.class );
Set<String> cache = new HashSet<String>();
- for ( Identifier identifier : person.getIdentifiers() )
+ for ( Attribute attribute : person.getAttributes() )
{
- if ( identifier.getValue() != null )
+ if ( attribute.getValue() != null )
{
- cache.add( identifier.getType() );
+ cache.add( attribute.getType() );
}
}