=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js 2015-09-14 15:40:35 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js 2015-09-14 15:51:56 +0000 @@ -103,7 +103,11 @@ if( index !== -1 ){ $scope.selectedTei.relationships.splice(index,1); - TEIService.update($scope.selectedTei, $scope.optionSets, $scope.attributesById).then(function(response){ + var trimmedTei = angular.copy($scope.selectedTei); + angular.forEach(trimmedTei.relationships, function(rel){ + delete rel.relative; + }); + TEIService.update(trimmedTei, $scope.optionSets, $scope.attributesById).then(function(response){ if(response.response && response.response.status !== 'SUCCESS'){//update has failed var dialogOptions = { headerText: 'update_error', @@ -431,8 +435,8 @@ var columns = attributes ? angular.copy(attributes) : []; //also add extra columns which are not part of attributes (orgunit for example) - columns.push({id: 'orgUnitName', name: 'Organisation unit', type: 'string', displayInListNoProgram: false}); - columns.push({id: 'created', name: 'Registration date', type: 'string', displayInListNoProgram: false}); + columns.push({id: 'orgUnitName', name: 'Organisation unit', type: 'TEXT', displayInListNoProgram: false}); + columns.push({id: 'created', name: 'Registration date', type: 'TEXT', displayInListNoProgram: false}); //generate grid column for the selected program/attributes angular.forEach(columns, function(column){ === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/search.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/search.html 2015-04-17 13:14:21 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/search.html 2015-09-14 15:51:56 +0000 @@ -43,7 +43,7 @@
-
+
@@ -81,7 +81,7 @@
-
+