dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #03457
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1162: Bug fix dataelement type
------------------------------------------------------------
revno: 1162
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2009-12-04 08:10:40 +0100
message:
Bug fix dataelement type
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/AddDataElementAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/UpdateDataElementAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ValidateDataElementAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementForm.vm
--
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-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/AddDataElementAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/AddDataElementAction.java 2009-11-07 14:09:00 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/AddDataElementAction.java 2009-12-04 07:10:40 +0000
@@ -119,11 +119,11 @@
this.domainType = domainType;
}
- private String valueType;
+ private String type;
- public void setValueType( String valueType )
+ public void setType( String type )
{
- this.valueType = valueType;
+ this.type = type;
}
private String aggregationOperator;
@@ -287,7 +287,7 @@
dataElement.setDescription( description );
dataElement.setActive( true );
dataElement.setDomainType( domainType );
- dataElement.setType( valueType );
+ dataElement.setType( type );
dataElement.setAggregationOperator( aggregationOperator );
dataElement.setUrl( url );
dataElement.setCategoryCombo( categoryCombo );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/UpdateDataElementAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/UpdateDataElementAction.java 2009-11-07 14:09:00 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/UpdateDataElementAction.java 2009-12-04 07:10:40 +0000
@@ -130,11 +130,11 @@
this.domainType = domainType;
}
- private String valueType;
+ private String type;
- public void setValueType( String valueType )
+ public void setType( String type )
{
- this.valueType = valueType;
+ this.type = type;
}
private String aggregationOperator;
@@ -233,7 +233,7 @@
dataElement.setDescription( description );
dataElement.setActive( active );
dataElement.setDomainType( domainType );
- dataElement.setType( valueType );
+ dataElement.setType( type );
dataElement.setAggregationOperator( aggregationOperator );
dataElement.setUrl( url );
dataElement.setCategoryCombo( categoryCombo );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ValidateDataElementAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ValidateDataElementAction.java 2009-11-07 14:09:00 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ValidateDataElementAction.java 2009-12-04 07:10:40 +0000
@@ -110,11 +110,11 @@
this.code = code;
}
- private String valueType;
+ private String type;
- public void setValueType( String valueType )
+ public void setType( String type )
{
- this.valueType = valueType;
+ this.type = type;
}
// -------------------------------------------------------------------------
@@ -254,7 +254,7 @@
if ( calculated != null && calculated.equals( "on" ) )
{
- if ( valueType != null && (!valueType.equals( DataElement.VALUE_TYPE_INT )) )
+ if ( type != null && (!type.equals( DataElement.VALUE_TYPE_INT )) )
{
message = i18n.getString( "cde_must_be_number" );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementForm.vm 2009-11-07 21:25:35 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementForm.vm 2009-12-04 07:10:40 +0000
@@ -39,7 +39,7 @@
<tr>
<td><label for="valueType">$i18n.getString( "value_type" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
<td>
- <select id="valueType" name="valueType" style="min-width:20em">
+ <select id="type" name="type" style="min-width:20em">
<option value="int" selected="selected">$i18n.getString( "number" )</option>
<option value="string">$i18n.getString( "text" )</option>
<option value="bool">$i18n.getString( "yes_no" )</option>