← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13051: minor fix

 

------------------------------------------------------------
revno: 13051
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-11-28 15:44:30 +0100
message:
  minor fix
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/adapter/JacksonOrganisationUnitChildrenSerializer.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-api/src/main/java/org/hisp/dhis/common/adapter/JacksonOrganisationUnitChildrenSerializer.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/adapter/JacksonOrganisationUnitChildrenSerializer.java	2013-11-28 13:52:05 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/adapter/JacksonOrganisationUnitChildrenSerializer.java	2013-11-28 14:44:30 +0000
@@ -71,7 +71,7 @@
                     staxWriter.writeAttribute( "href", value.getHref() );
                 }
 
-                staxWriter.writeAttribute( "haveChildren", String.valueOf( value.hasChild() ) );
+                staxWriter.writeAttribute( "hasChildren", String.valueOf( value.hasChild() ) );
                 staxWriter.writeEndElement();
             }
             catch ( XMLStreamException e )
@@ -96,7 +96,7 @@
                 jgen.writeStringField( "href", value.getHref() );
             }
 
-            jgen.writeBooleanField( "haveChildren", value.hasChild() );
+            jgen.writeBooleanField( "hasChildren", value.hasChild() );
 
             jgen.writeEndObject();
         }