← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12839: Applied patch from dan cocos. Fixes bug with attributes in groups in edit patient form.

 

------------------------------------------------------------
revno: 12839
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-10-31 00:42:15 +0100
message:
  Applied patch from dan cocos. Fixes bug with attributes in groups in edit patient form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.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-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm	2013-10-24 08:31:35 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm	2013-10-30 23:42:15 +0000
@@ -153,7 +153,7 @@
 	
 	#foreach ($attributeGroup in $attributeGroups )
 		#set($attributes = $attributesMap.get($attributeGroup.displayName))
-		#if( $attributes && $attributes.size() == 0 )
+		#if( $attributes && $attributes.size() > 0 )
 			<tr><td>&nbsp;</td></tr>
 			<tr><th colspan="2" class="heading-column">$attributeGroup.displayName</th></tr>
 			#foreach($attribute in $attributes )
@@ -327,4 +327,4 @@
 		setFieldValue('phoneNumber',phoneNumberAreaCode)
 	#end
 	
-</script>
\ No newline at end of file
+</script>