diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index f1bfc30..6ba42eb 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -8432,18 +8432,21 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$rootScope.ModifiedsearchListArray = [];
// added the timeout to delay the compile of ul li
$scope.IsSearchVisible = true;
-
+ var isValueMatchedWithTerm = false;
for (var i = 0; i <= $rootScope.searchListArray.length - 1; i++)
{
var searchFieldVal = $("#typedTermName").val();
if (searchFieldVal.length > 0) {
- var isValueMatchedWithTerm = true;
+
for (var j = 0; j <= searchFieldVal.length - 1; j++) {
if (searchFieldVal[j].toUpperCase() != $rootScope.searchListArray[i].name[j].toUpperCase()) {
isValueMatchedWithTerm = false;
break;
}
+ else {
+ isValueMatchedWithTerm = true
+ }
}
if (isValueMatchedWithTerm == true) {
$rootScope.ModifiedsearchListArray.push({ "name": $rootScope.searchListArray[i].name, "id": $rootScope.searchListArray[i].id});