dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40654
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20653: ER fav support for program indicators.
------------------------------------------------------------
revno: 20653
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-10-12 21:39:03 +0300
message:
ER fav support for program indicators.
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.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-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2015-10-12 11:12:49 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2015-10-12 18:39:03 +0000
@@ -4225,10 +4225,6 @@
programStore.add(layout.program);
program.setValue(layout.program.id);
- stagesByProgramStore.add(layout.programStage);
- stage.setValue(layout.programStage.id);
- stage.enable();
-
// periods
period.reset();
@@ -4323,7 +4319,7 @@
}
// data items
- onStageSelect(null, layout);
+ onProgramSelect(layout.program.id, layout);
};
program = Ext.create('Ext.form.field.ComboBox', {
@@ -4385,7 +4381,7 @@
}
else {
Ext.Ajax.request({
- url: ns.core.init.contextPath + '/api/programs.json?filter=id:eq:' + programId + '&fields=programIndicators[id,name],programStages[id,name],programTrackedEntityAttributes[trackedEntityAttribute[id,' + ns.core.init.namePropertyUrl + ',valueType,optionSet[id,name],legendSet[id,name]]]&paging=false',
+ url: ns.core.init.contextPath + '/api/programs.json?filter=id:eq:' + programId + '&fields=programStages[id,name],programIndicators[id,name],programTrackedEntityAttributes[trackedEntityAttribute[id,' + ns.core.init.namePropertyUrl + ',valueType,optionSet[id,name],legendSet[id,name]]]&paging=false',
success: function(r) {
var program = Ext.decode(r.responseText).programs[0],
stages,