dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11281
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3195: Fix bug: Non-informative text after beneficiary registration.
------------------------------------------------------------
revno: 3195
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-03-29 09:51:56 +0700
message:
Fix bug: Non-informative text after beneficiary registration.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
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/resources/struts.xml
--
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/AddPatientAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java 2011-03-25 04:52:13 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java 2011-03-29 02:51:56 +0000
@@ -327,7 +327,7 @@
// -------------------------------------------------------------------------
id = patientService.createPatient( patient, representativeId, relationshipTypeId, patientAttributeValues );
-
+
return SUCCESS;
}
=== 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-03-28 07:46:07 +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-29 02:51:56 +0000
@@ -29,7 +29,6 @@
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;
@@ -76,7 +75,7 @@
// -------------------------------------------------------------------------
// Input/Output
// -------------------------------------------------------------------------
-
+
private Integer id;
public void setId( Integer id )
@@ -148,7 +147,7 @@
patient = patientService.getPatient( id );
}
- if ( id == null )
+ else if ( id == null )
{
patient = selectedStateManager.getSelectedPatient();
}
@@ -170,7 +169,6 @@
// ---------------------------------------------------------------------
programs = programService.getPrograms( selectedStateManager.getSelectedOrganisationUnit() );
-// programs = programService.getAllPrograms();
// ---------------------------------------------------------------------
// Validate selected Program
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml 2011-03-24 06:04:40 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml 2011-03-29 02:51:56 +0000
@@ -399,7 +399,7 @@
<action name="addPatient"
class="org.hisp.dhis.patient.action.patient.AddPatientAction">
- <result name="success" type="chain">showProgramEnrollmentForm
+ <result name="success" type="redirect">showProgramEnrollmentForm.action?id=${id}
</result>
<param name="requiredAuthorities">F_PATIENT_ADD</param>
</action>