dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27253
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13533: support viewClass for /api/metaData (without ext)
------------------------------------------------------------
revno: 13533
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-01-02 12:26:19 +0100
message:
support viewClass for /api/metaData (without ext)
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 2014-01-02 11:23:53 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MetaDataController.java 2014-01-02 11:26:19 +0000
@@ -96,7 +96,7 @@
MetaData metaData = exportService.getMetaData( options );
model.addAttribute( "model", metaData );
- model.addAttribute( "viewClass", "export" );
+ model.addAttribute( "viewClass", options.getViewClass( "export" ) );
return "export";
}