dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31984
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16342: Fixed bug - Don't load program-stage list when to select a program in Add/Update aggregation quer...
------------------------------------------------------------
revno: 16342
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-08-07 21:14:54 +0700
message:
Fixed bug - Don't load program-stage list when to select a program in Add/Update aggregation query builder form.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/jsonParamsByProgram.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-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/jsonParamsByProgram.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/jsonParamsByProgram.vm 2014-03-19 06:44:30 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/jsonParamsByProgram.vm 2014-08-07 14:14:54 +0000
@@ -1,11 +1,11 @@
{ #set( $size = $!{programStages.size()} )
"programStages": [
- #foreach( ${programStage} in $!{programStages} )
- {
- "id": "${programStage.id}",
- "name": "$!encoder.jsonEncode( ${programStage.displayName} )"
- }#if( $velocityCount < $size ),#end
- #end
+ #foreach( ${programStage} in $!{programStages} )
+ {
+ "id": "${programStage.id}",
+ "name": "$!encoder.jsonEncode( ${programStage.displayName} )"
+ }#if( $velocityCount < $size ),#end
+ #end
],
"attributes":[
#set( $size = $!{attributes.size()} )
@@ -13,7 +13,16 @@
{
"id": "[CA:${attribute.id}]",
"name": "$!encoder.jsonEncode( ${attribute.name} )",
- "suggested":"$!attribute.optionSet.options"
+ "suggested":[
+ #if( $!dataElement.optionSet )
+ #foreach( $opt in $!attribute.optionSet.options )
+ {
+ "code" : $opt.code,
+ "name" : "$encoder.xmlEncode($opt.name)"
+ }#if( $velocityCount < $size ),#end
+ #end
+ #end
+ ]
}#if( $velocityCount < $size ),#end
#end
]