← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20053: event-capture: response payload bug fix when working with offline events

 

------------------------------------------------------------
revno: 20053
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-09-09 10:21:34 +0200
message:
  event-capture: response payload bug fix when working with offline events
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.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-capture/scripts/services.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js	2015-09-08 09:15:23 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js	2015-09-09 08:21:34 +0000
@@ -306,7 +306,7 @@
                 dhis2Event.id = dhis2.util.uid();  
                 dhis2Event.event = dhis2Event.id;
                 dhis2.ec.store.set( 'events', dhis2Event );                
-                return {importSummaries: [{status: 'SUCCESS', reference: dhis2Event.id}]};
+                return {response: {importSummaries: [{status: 'SUCCESS', reference: dhis2Event.id}]}};
             });
             return promise;            
         },        
@@ -500,4 +500,4 @@
             return e;
         }        
     };
-});
\ No newline at end of file
+});