← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18775: Remove 'Single event' part of the name of program stage which is genereated automatically when a ...

 

------------------------------------------------------------
revno: 18775
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-03-31 18:41:57 +0700
message:
  Remove 'Single event' part of the name of program stage which is genereated automatically when a single event program is created.
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/program/AddProgramAction.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-program/src/main/java/org/hisp/dhis/trackedentity/action/program/AddProgramAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/program/AddProgramAction.java	2015-01-17 07:41:26 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/program/AddProgramAction.java	2015-03-31 11:41:57 +0000
@@ -58,8 +58,6 @@
 public class AddProgramAction
     implements Action
 {
-    private static String SINGLE_EVENT = "Single-Event";
-
     private static String REPORT_DATE_DESCRIPTION = "Report date";
 
     // -------------------------------------------------------------------------
@@ -330,7 +328,7 @@
         {
             ProgramStage programStage = new ProgramStage();
 
-            programStage.setName( SINGLE_EVENT + " " + name );
+            programStage.setName( name );
             programStage.setDescription( description );
             programStage.setProgram( program );
             programStage.setMinDaysFromStart( 0 );