dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28736
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14385: Fixed bug - Undefined values showed in Available value tab when to filter data elements by name/c...
------------------------------------------------------------
revno: 14385
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-03-25 14:10:25 +0700
message:
Fixed bug - Undefined values showed in Available value tab when to filter data elements by name/code in Aggregate Query Builder
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addCaseAggregation.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramIndicator.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/caseaggregation.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programIndicator.js
--
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/webapp/dhis-web-maintenance-program/addCaseAggregation.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addCaseAggregation.vm 2014-02-10 10:37:03 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addCaseAggregation.vm 2014-03-25 07:10:25 +0000
@@ -80,7 +80,7 @@
<label for="programStage">$i18n.getString( "program_stage" )</label>
</td>
<td>
- <select id="programStageId" name="programStageId" onChange="getTrackedEmtityDataElements();"></select>
+ <select id="programStageId" name="programStageId" onChange="getTrackedEntityDataElements();"></select>
</td>
</tr>
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramIndicator.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramIndicator.vm 2014-02-10 10:37:03 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramIndicator.vm 2014-03-25 07:10:25 +0000
@@ -67,7 +67,7 @@
<tr>
<td><label>$i18n.getString( "program_stage" ) </label></td>
<td>
- <select style="width:336px;" id="programStageId" name="programStageId" onChange="getTrackedEmtityDataElements();">
+ <select style="width:336px;" id="programStageId" name="programStageId" onChange="getTrackedEntityDataElements();">
<option value=''>[$i18n.getString('please_select')]</option>
#foreach( $programStage in $program.programStages )
<option value='$programStage.id'>$programStage.displayName</option>
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/caseaggregation.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/caseaggregation.js 2014-02-07 20:25:49 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/caseaggregation.js 2014-03-25 07:10:25 +0000
@@ -399,10 +399,10 @@
var option = jQuery(this);
if( valueType == '' || valueType == option.attr('valueType') ) {
if( value.length == 0 ) {
- jQuery('#' + fieldName).append("<option value='" + option.attr('value') + "' title='" + option.text() + "' suggested='" + option.attr('optionset') + "' valueType='" + option.attr('valueType') + "'>" + option.text() + "</option>");
+ jQuery('#' + fieldName).append("<option value='" + option.attr('value') + "' title='" + option.text() + "' suggested='" + option.attr('suggested') + "' valueType='" + option.attr('valueType') + "'>" + option.text() + "</option>");
}
else if( option.text().toLowerCase().indexOf(value.toLowerCase()) != -1 ) {
- jQuery('#' + fieldName).append("<option value='" + option.attr('value') + "' title='" + option.text() + "' suggested='" + option.attr('optionset') + "' valueType='" + option.attr('valueType') + "'>" + option.text() + "</option>");
+ jQuery('#' + fieldName).append("<option value='" + option.attr('value') + "' title='" + option.text() + "' suggested='" + option.attr('suggested') + "' valueType='" + option.attr('valueType') + "'>" + option.text() + "</option>");
}
}
});
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programIndicator.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programIndicator.js 2014-02-07 20:25:49 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programIndicator.js 2014-03-25 07:10:25 +0000
@@ -38,12 +38,12 @@
removeItem(context.id, context.name, i18n_confirm_delete, 'removeProgramIndicator.action');
}
-function getTrackedEmtityDataElements() {
+function getTrackedEntityDataElements() {
clearListById('dataElements');
clearListById('deSumId');
var programStageId = getFieldValue('programStageId');
- jQuery.getJSON('getTrackedEmtityDataElements.action',
+ jQuery.getJSON('getTrackedEntityDataElements.action',
{
programId: getFieldValue('programId'),
programStageId: programStageId