← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6838: Fixed bug: Always display one attribute-value for all attributes when editing data elements.

 

------------------------------------------------------------
revno: 6838
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-05-03 11:09:43 +0700
message:
  Fixed bug: Always display one attribute-value for all attributes when editing data elements.
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.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-commons-resources/src/main/webapp/macros.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm	2012-04-04 10:51:40 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm	2012-05-03 04:09:43 +0000
@@ -289,7 +289,11 @@
 		#set( $text = $attribute.name )
 		#set( $id = $attribute.id )
 		#set( $mandatory = $attribute.mandatory )
-		#set( $value = $!args.attributeValues.get( $attribute.id ) )
+		#if( $!args.attributeValues.get( $attribute.id ) )
+			#set( $value = $!args.attributeValues.get( $attribute.id ) )
+		#else
+			#set( $value = "" )
+		#end
 
 		#if( $attribute.valueType == "string" )
 			#trTextInput( { "text": $text, "id": "attribute_$id", "mandatory": $mandatory, "value": $value } )