dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39978
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20238: Fixed bug - Generate duplicate events when TEI enrolls into a program with one stage.
------------------------------------------------------------
revno: 20238
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-09-18 13:42:16 -0700
message:
Fixed bug - Generate duplicate events when TEI enrolls into a program with one stage.
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.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-services/dhis-service-core/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2015-09-16 18:31:45 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2015-09-18 20:42:16 +0000
@@ -486,17 +486,6 @@
programInstance.setStatus( ProgramInstance.STATUS_ACTIVE );
addProgramInstance( programInstance );
- // ---------------------------------------------------------------------
- // Generate event if program is single event
- // ---------------------------------------------------------------------
-
- if ( program.isRegistration() && program.isSingleProgramStage() )
- {
- ProgramStage programStage = program.getProgramStages().iterator().next();
- programStageInstanceService.createProgramStageInstance( programInstance, programStage, enrollmentDate,
- incidentDate, organisationUnit );
- }
-
// -----------------------------------------------------------------
// Send messages after enrolling in program
// -----------------------------------------------------------------