=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js 2015-11-17 13:20:40 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js 2015-11-30 11:05:20 +0000 @@ -224,13 +224,10 @@ //check search mode if( $scope.selectedSearchMode === $scope.searchMode.freeText ){ - if(!$scope.searchText){ - $scope.emptySearchText = true; - $scope.teiFetched = false; - return; - } - - $scope.queryUrl = 'query=LIKE:' + $scope.searchText; + if( $scope.searchText ){ + $scope.queryUrl = 'query=LIKE:' + $scope.searchText; + } + $scope.attributes = EntityQueryFactory.resetAttributesQuery($scope.attributes, $scope.enrollment); $scope.searchingOrgUnit = $scope.selectedOrgUnit; }