dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29139
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14668: Fixed bug - The attributes of program don't display in Define template messages form of program-s...
------------------------------------------------------------
revno: 14668
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-04-04 22:35:16 +0700
message:
Fixed bug - The attributes of program don't display in Define template messages form of program-stage.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramStageForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programStage.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.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-program/src/main/webapp/dhis-web-maintenance-program/addProgramStageForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramStageForm.vm 2014-04-04 13:10:47 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramStageForm.vm 2014-04-04 15:35:16 +0000
@@ -255,8 +255,8 @@
programStageList.push("$programStage.displayName");
#end
- var idenAttrOptions = "";
- #foreach($programAttribute in $program.programAttributes)
- idenAttrOptions+="<option value={attributeid=$programAttribute.attribute.uid}>$programAttribute.attribute.displayName</option>";
+ var attrOptions = "";
+ #foreach($programAttribute in $program.attributes)
+ attrOptions+="<option value={attributeid=$programAttribute.attribute.uid}>$programAttribute.attribute.displayName</option>";
#end
</script>
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programStage.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programStage.js 2014-03-24 09:02:13 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programStage.js 2014-04-04 15:35:16 +0000
@@ -367,7 +367,7 @@
+ '<option value="{due-date}">' + i18n_due_date + '</option>'
+ '<option value="{days-since-due-date}">' + i18n_days_since_due_date + '</option>'
+ '<option value="{orgunit-name}">' + i18n_orgunit_name + '</option>'
- + idenAttrOptions
+ + attrOptions
+ '</select>'
+ '</td>'
+ '</tr>'
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm 2014-03-24 09:02:13 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm 2014-04-04 15:35:16 +0000
@@ -276,9 +276,9 @@
var i18n_message = '$encoder.jsEscape( $i18n.getString( "message" ) , "'")';
var i18n_both = '$encoder.jsEscape( $i18n.getString( "both" ) , "'")';
- var idenAttrOptions = "";
- #foreach($programAttribute in $programStage.program.programAttributes)
- idenAttrOptions+="<option value={attributeid=$programAttribute.attribute.uid}>$programAttribute.attribute.displayName</option>";
+ var attrOptions = "";
+ #foreach($programAttribute in $programStage.program.attributes)
+ attrOptions+="<option value={attributeid=$programAttribute.attribute.uid}>$programAttribute.attribute.displayName</option>";
#end
</script>
\ No newline at end of file