dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18410
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7753: Minor fix.
------------------------------------------------------------
revno: 7753
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-07-30 13:35:47 +0700
message:
Minor fix.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.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/programstage/UpdateProgramStageAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.java 2012-07-27 15:13:24 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.java 2012-07-30 06:35:47 +0000
@@ -173,7 +173,8 @@
for ( int i = 0; i < this.selectedDataElementsValidator.size(); i++ )
{
DataElement dataElement = dataElementService.getDataElement( selectedDataElementsValidator.get( i ) );
-
+ Boolean allowed = allowProvidedElsewhere.get( i ) == null ? false : allowProvidedElsewhere.get( i );
+
ProgramStageDataElement programStageDataElement = programStageDataElementService.get( programStage,
dataElement );
@@ -181,6 +182,7 @@
{
programStageDataElement = new ProgramStageDataElement( programStage, dataElement, this.compulsories
.get( i ), new Integer( i ) );
+ programStageDataElement.setAllowProvidedElsewhere( allowed );
programStageDataElementService.addProgramStageDataElement( programStageDataElement );
}
else
@@ -189,7 +191,6 @@
programStageDataElement.setSortOrder( new Integer( i ) );
- Boolean allowed = allowProvidedElsewhere.get( i ) == null ? false : allowProvidedElsewhere.get( i );
programStageDataElement.setAllowProvidedElsewhere( allowed );
programStageDataElementService.updateProgramStageDataElement( programStageDataElement );