diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 1f3aa3c..dcf92ce 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -8012,8 +8012,18 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l else if ($rootScope.previousHighlightList != null && $rootScope.previousHighlightList.length > 0 && ($rootScope.isGenderChnage == true || $rootScope.isViewChange == true)) { - $rootScope.isHighLight = true - $scope.setLayerNumberAndHighlightByTermList(); + $rootScope.isHighLight = true; + if ($rootScope.TermNumberData != undefined && $rootScope.TermNumberData.length > 0) { + $scope.TermList = $scope.getTermNumberList($rootScope.actualTermNumber); + if ($scope.TermList != null) { + $scope.setLayerNumberAndHighlightByTermList(); + } + else { + //actual term number is not found in thsi view menas previously selected body part does not exist in this view + $scope.EnableUI(); + } + } + } else {