dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32073
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16392: minor bugfix, in json, expose programTrackedEntityAttribute.attribute as trackedEntityAttribute (...
------------------------------------------------------------
revno: 16392
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-08-13 13:21:17 +0700
message:
minor bugfix, in json, expose programTrackedEntityAttribute.attribute as trackedEntityAttribute (was correct in xml)
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramTrackedEntityAttribute.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/program/ProgramTrackedEntityAttribute.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramTrackedEntityAttribute.java 2014-07-27 15:02:58 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramTrackedEntityAttribute.java 2014-08-13 06:21:17 +0000
@@ -33,7 +33,6 @@
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
-
import org.hisp.dhis.common.BaseIdentifiableObject;
import org.hisp.dhis.common.DxfNamespaces;
import org.hisp.dhis.common.view.DetailedView;
@@ -55,7 +54,7 @@
private int id;
private TrackedEntityAttribute attribute;
-
+
private boolean displayInList;
private Boolean mandatory;
@@ -120,7 +119,7 @@
this.mandatory = mandatory;
}
- @JsonProperty
+ @JsonProperty( "trackedEntityAttribute" )
@JsonSerialize( as = BaseIdentifiableObject.class )
@JsonView( { DetailedView.class, ExportView.class, WithoutOrganisationUnitsView.class } )
@JacksonXmlProperty( localName = "trackedEntityAttribute", namespace = DxfNamespaces.DXF_2_0 )