------------------------------------------------------------
revno: 5668
committer: Tran Chau <[email protected]>
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 );
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp