dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39112
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19838: Data entry, minor
------------------------------------------------------------
revno: 19838
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-08-25 09:19:18 +0200
message:
Data entry, minor
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java
dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetMetaDataAction.java
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/responseMetaData.vm
--
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-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java 2015-07-02 23:34:24 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java 2015-08-25 07:19:18 +0000
@@ -174,7 +174,7 @@
}
Set<String> keys = new HashSet<>( dataValueMap.keySet() );
-
+
for ( String key : keys )
{
String[] keyArray = key.split( DIMENSION_SEP );
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetMetaDataAction.java'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetMetaDataAction.java 2015-06-22 15:21:26 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetMetaDataAction.java 2015-08-25 07:19:18 +0000
@@ -221,7 +221,7 @@
for ( DataElement dataElement : dataElements )
{
- if ( dataElement.getOptionSet() != null )
+ if ( dataElement != null && dataElement.getOptionSet() != null )
{
dataElementsWithOptionSet.add( dataElement );
}
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/responseMetaData.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/responseMetaData.vm 2015-06-10 20:22:17 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/responseMetaData.vm 2015-08-25 07:19:18 +0000
@@ -21,7 +21,7 @@
#foreach( $dataElement in $dataElementsWithOptionSet )
#set( $size2 = $dataElement.categoryCombo.getSortedOptionCombos().size() )
#foreach( $option in $dataElement.categoryCombo.getSortedOptionCombos() )
-"${dataElement.uid}-$option.uid":{"uid":"$encoder.jsonEncode( ${dataElement.optionSet.uid} )","v":${dataElement.optionSet.version}}#if( $velocityCount < $size2 ),#end
+"${dataElement.uid}-${option.uid}":{"uid":"$encoder.jsonEncode( ${dataElement.optionSet.uid} )","v":${dataElement.optionSet.version}}#if( $velocityCount < $size2 ),#end
#end #if( $velocityCount < $size ),#end
#end },