← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15490: minor change, double check that value is true if XML_ATTRIBUTE hint is set

 

------------------------------------------------------------
revno: 15490
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-06-01 02:03:15 +0200
message:
  minor change, double check that value is true if XML_ATTRIBUTE hint is set
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/StaXNodeRenderer.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/node/StaXNodeRenderer.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/StaXNodeRenderer.java	2014-05-31 23:48:24 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/StaXNodeRenderer.java	2014-06-01 00:03:15 +0000
@@ -136,7 +136,8 @@
         switch ( node.getType() )
         {
             case SIMPLE:
-                if ( node.haveHint( NodeHint.Type.XML_ATTRIBUTE ) )
+                if ( node.haveHint( NodeHint.Type.XML_ATTRIBUTE ) &&
+                    (boolean) node.getHint( NodeHint.Type.XML_ATTRIBUTE ).getValue() )
                 {
                     renderSimpleNodeAttribute( (SimpleNode) node, writer );
                 }