dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16456
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6263: (patient) Don't create a new encounter for irregular program-stage.
------------------------------------------------------------
revno: 6263
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-03-14 11:06:35 +0700
message:
(patient) Don't create a new encounter for irregular program-stage.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/CompleteDataEntryAction.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/caseentry/CompleteDataEntryAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/CompleteDataEntryAction.java 2011-12-16 06:45:30 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/CompleteDataEntryAction.java 2012-03-14 04:06:35 +0000
@@ -120,7 +120,7 @@
for ( ProgramStageInstance stageInstance : stageInstances )
{
- if ( !stageInstance.isCompleted() )
+ if ( !stageInstance.isCompleted() && !stageInstance.getProgramStage().getIrregular() )
{
return SUCCESS;
}