Commit 920c00e094edc3ded0c9692f6af235784dd3eab2

Authored by Nikita Kulshreshtha
1 parent 8f0a2655

treid a solution

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -8012,8 +8012,18 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
8012 8012 else if ($rootScope.previousHighlightList != null && $rootScope.previousHighlightList.length > 0 &&
8013 8013 ($rootScope.isGenderChnage == true || $rootScope.isViewChange == true)) {
8014 8014  
8015   - $rootScope.isHighLight = true
8016   - $scope.setLayerNumberAndHighlightByTermList();
  8015 + $rootScope.isHighLight = true;
  8016 + if ($rootScope.TermNumberData != undefined && $rootScope.TermNumberData.length > 0) {
  8017 + $scope.TermList = $scope.getTermNumberList($rootScope.actualTermNumber);
  8018 + if ($scope.TermList != null) {
  8019 + $scope.setLayerNumberAndHighlightByTermList();
  8020 + }
  8021 + else {
  8022 + //actual term number is not found in thsi view menas previously selected body part does not exist in this view
  8023 + $scope.EnableUI();
  8024 + }
  8025 + }
  8026 +
8017 8027 }
8018 8028  
8019 8029 else {
... ...