← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5668: Disable Register-event tab if there is not any single program.

 

------------------------------------------------------------
revno: 5668
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-01-06 13:32:06 +0700
message:
  Disable Register-event tab if there is not any single program.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ProgramEnrollmentSelectAction.java


--
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/java/org/hisp/dhis/caseentry/action/patient/ProgramEnrollmentSelectAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ProgramEnrollmentSelectAction.java	2011-10-05 03:39:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ProgramEnrollmentSelectAction.java	2012-01-06 06:32:06 +0000
@@ -119,7 +119,7 @@
         // Check the selected orgunit has any single-event program or not
         Collection<Program> programsbyOrgunit = programService.getPrograms( selectedOrgunit );
 
-        Collection<Program> singleEventPrograms = programService.getPrograms( true );
+        Collection<Program> singleEventPrograms = programService.getPrograms( true, false );
 
         singleEventPrograms.retainAll( programsbyOrgunit );