dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38834
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19731: tracker-capture: bug fix during enrollment
------------------------------------------------------------
revno: 19731
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-08-06 16:08:42 +0200
message:
tracker-capture: bug fix during enrollment
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/registration-controller.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/components/registration/registration-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/registration-controller.js 2015-07-14 19:05:51 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/registration-controller.js 2015-08-06 14:08:42 +0000
@@ -143,7 +143,7 @@
}
RegistrationService.registerOrUpdate($scope.tei, $scope.optionSets, $scope.attributesById).then(function(registrationResponse){
- var reg = registrationResponse.response && registrationResponse.response.importSummaries && registrationResponse.response.importSummaries[0] ? registrationResponse.response.importSummaries[0] : {};
+ var reg = registrationResponse.response ? registrationResponse.response : {};
if(reg.reference && reg.status === 'SUCCESS'){
$scope.tei.trackedEntityInstance = reg.reference;