Skip to content

Commit

Permalink
fixed bug in extendedSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Mar 30, 2015
1 parent bfc5a33 commit 0fd2bc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/webapp/resources/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,11 @@ function ExtendedSearchCtrl($scope, $rootScope, $location, messages, PolygonVali
filterQuery += " AND ";
filterQuery += "_missing_:provenance";
}
if ($scope.type == "noType")
if ($scope.type == "noType") {
if (filterQuery != "")
filterQuery += " AND ";
filterQuery += "_missing_:types";
}

var query = { "bool": { "must": queries } };

Expand Down

0 comments on commit 0fd2bc2

Please sign in to comment.