dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11229
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3178: Fix bug: Patient enrolls programs which belong to the selected organisation unit.
------------------------------------------------------------
revno: 3178
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-03-28 14:46:07 +0700
message:
Fix bug: Patient enrolls programs which belong to the selected organisation unit.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/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-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ProgramEnrollmentSelectAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ProgramEnrollmentSelectAction.java 2011-01-11 07:06:28 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ProgramEnrollmentSelectAction.java 2011-03-28 07:46:07 +0000
@@ -29,6 +29,7 @@
import java.util.ArrayList;
import java.util.Collection;
+import org.hisp.dhis.ouwt.manager.OrganisationUnitSelectionManager;
import org.hisp.dhis.patient.Patient;
import org.hisp.dhis.patient.PatientService;
import org.hisp.dhis.patient.state.SelectedStateManager;
@@ -71,7 +72,7 @@
{
this.programService = programService;
}
-
+
// -------------------------------------------------------------------------
// Input/Output
// -------------------------------------------------------------------------
@@ -168,7 +169,8 @@
// Load Programs
// ---------------------------------------------------------------------
- programs = programService.getAllPrograms();
+ programs = programService.getPrograms( selectedStateManager.getSelectedOrganisationUnit() );
+// programs = programService.getAllPrograms();
// ---------------------------------------------------------------------
// Validate selected Program