dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40471
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20521: tracker-capture: avoid sending uncessary property when uploading enrollment
------------------------------------------------------------
revno: 20521
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-10-06 15:41:11 +0200
message:
tracker-capture: avoid sending uncessary property when uploading enrollment
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-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-tracker-capture/scripts/services.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js 2015-09-24 12:19:33 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js 2015-10-06 13:41:11 +0000
@@ -517,6 +517,7 @@
var convertFromUserToApi = function(enrollment){
enrollment.incidentDate = DateUtils.formatFromUserToApi(enrollment.incidentDate);
enrollment.enrollmentDate = DateUtils.formatFromUserToApi(enrollment.enrollmentDate);
+ delete enrollment.orgUnitName;
return enrollment;
};
return {