← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12521: Hide gender and dead when to run tabular report of anonymous program.

 

------------------------------------------------------------
revno: 12521
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-10-09 13:52:18 +0700
message:
  Hide gender and dead when to run tabular report of anonymous program.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/responseDataElements.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/responseDataElements.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/responseDataElements.vm	2013-10-05 05:15:03 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/responseDataElements.vm	2013-10-09 06:52:18 +0000
@@ -1,5 +1,10 @@
+#set($program = '')
+#foreach( $psDataElement in $psDataElements )
+	#set($program = $psDataElement.programStage.program )
+#end
+
 { "items": [
-	#if( $auth.hasAccess( "dhis-web-caseentry", "accessPatientAttributes" ) )
+	#if( $auth.hasAccess( "dhis-web-caseentry", "accessPatientAttributes" ) && $program!='' )
 		{
 			"id": "GENDER",
 			"name": "$i18n.getString('gender')",