dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24327
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11907: minor fixes
------------------------------------------------------------
revno: 11907
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-09-04 10:56:15 +0200
message:
minor fixes
modified:
dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/eventImportForm.vm
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-importexport/src/main/webapp/dhis-web-importexport/eventImportForm.vm'
--- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/eventImportForm.vm 2013-08-28 07:27:01 +0000
+++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/eventImportForm.vm 2013-09-04 08:56:15 +0000
@@ -17,12 +17,7 @@
<option value="true">$i18n.getString( "yes" )</option>
</select></td>
</tr>
-<tr>
- <td>$i18n.getString( "strategy" )</td>
- <td><select disabled="disabled" id="strategy" name="strategy" style="width:190px">
- <option value="NEW">$i18n.getString( "new_only" )</option>
- </select></td>
-</tr>
+
<tr>
<td></td>
<td><input type="button" value="$i18n.getString( 'import' )" style="width:120px" onclick="importEventData()"/></td>
=== 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 2013-09-02 21:20:47 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.java 2013-09-04 08:56:15 +0000
@@ -28,11 +28,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
+import com.opensymphony.xwork2.Action;
import org.hisp.dhis.dataelement.DataElement;
import org.hisp.dhis.dataelement.DataElementService;
import org.hisp.dhis.patient.PatientReminder;
@@ -43,12 +39,15 @@
import org.hisp.dhis.user.UserGroup;
import org.hisp.dhis.user.UserGroupService;
-import com.opensymphony.xwork2.Action;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
/**
* @author Abyot Asalefew Gizaw
+ * @version $Id$
* @modified Tran Thanh Tri
- * @version $Id$
*/
public class UpdateProgramStageAction
implements Action
@@ -318,6 +317,7 @@
{
programStage.setAutoGenerateEvent( autoGenerateEvent );
}
+
programStage.setValidCompleteOnly( validCompleteOnly );
programStage.setCaptureCoordinates( captureCoordinates );
@@ -361,7 +361,7 @@
if ( programStageDataElement == null )
{
programStageDataElement = new ProgramStageDataElement( programStage, dataElement,
- this.compulsories.get( i ), new Integer( i ) );
+ this.compulsories.get( i ), i );
programStageDataElement.setAllowProvidedElsewhere( allowed );
programStageDataElement.setDisplayInReports( displayInReport );
programStageDataElement.setAllowDateInFuture( allowDate );
@@ -370,7 +370,7 @@
else
{
programStageDataElement.setCompulsory( this.compulsories.get( i ) );
- programStageDataElement.setSortOrder( new Integer( i ) );
+ programStageDataElement.setSortOrder( i );
programStageDataElement.setAllowProvidedElsewhere( allowed );
programStageDataElement.setDisplayInReports( displayInReport );
programStageDataElement.setAllowDateInFuture( allowDate );