dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38854
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19744: bug fix in saving program rule actions
------------------------------------------------------------
revno: 19744
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-08-07 17:44:34 +0200
message:
bug fix in saving program rule actions
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.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/javascript/programRule.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.js 2015-06-23 09:02:05 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.js 2015-08-07 15:44:34 +0000
@@ -337,9 +337,12 @@
,contentType: "application/json"
,data: JSON.stringify(json_Data)
,success: function(data){
- var programRuleId = data.lastImported;
- saveProgramRuleVariable();
- saveAction( programRuleId );
+ console.log('the data: ', data);
+ if( data.response && data.response.lastImported ){
+ //var programRuleId = data.response.lastImported;
+ saveProgramRuleVariable();
+ saveAction( data.response.lastImported );
+ }
}
,error: function(){}
});