dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17417
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6922: local vn - Fixed in generating Attribute report.
------------------------------------------------------------
revno: 6922
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-05-12 23:01:40 +0700
message:
local vn - Fixed in generating Attribute report.
modified:
local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportAttributeAction.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 'local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportAttributeAction.java'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportAttributeAction.java 2012-05-04 09:50:39 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportAttributeAction.java 2012-05-12 16:01:40 +0000
@@ -134,8 +134,8 @@
}
else
{
- int id = Integer.parseInt( exportItem.getExpression().split( "@" )[0] );
- String value = exportItem.getExpression().split( "@" )[1];
+ int id = Integer.parseInt( exportItem.getExpression().split( "@" )[0].replace( "[", "" ) );
+ String value = exportItem.getExpression().split( "@" )[1].replace( "]", "" );
for ( DataElement de : dataElements )
{