------------------------------------------------------------
revno: 19744
committer: Abyot Asalefew Gizaw <[email protected]>
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(){}
 		});

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to