← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7351: minor fix #2

 

------------------------------------------------------------
revno: 7351
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-06-22 18:49:20 +0300
message:
  minor fix #2
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MetaDataController.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-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MetaDataController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MetaDataController.java	2012-06-22 15:48:47 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MetaDataController.java	2012-06-22 15:49:20 +0000
@@ -115,8 +115,10 @@
         {
             exportZippedJSON( parameters, response );
         }
-
-        exportZippedXML( parameters, response );
+        else
+        {
+            exportZippedXML( parameters, response );
+        }
     }
 
     @RequestMapping( value = { MetaDataController.RESOURCE_PATH + ".xml.zip" }, produces = "*/*" )
@@ -159,8 +161,10 @@
         {
             exportGZippedJSON( parameters, response );
         }
-
-        exportGZippedXML( parameters, response );
+        else
+        {
+            exportGZippedXML( parameters, response );
+        }
     }
 
     @RequestMapping( value = { MetaDataController.RESOURCE_PATH + ".xml.gz" }, produces = "*/*" )