Prevent from using AND if they are the same field (#1366)

This commit is contained in:
Jesús Ángel 2019-04-11 17:37:34 +02:00 committed by GitHub
parent 0d346e2f60
commit db7e40d1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,14 +204,12 @@ app.directive('wzTagFilter', function() {
$scope.connectors[parentIdx].value = ';';
} else {
if (idx !== undefined) {
const value = $scope.connectors[parentIdx].subgroup[idx].value;
$scope.connectors[parentIdx].subgroup[idx].value =
value === ';' ? ',' : ';';
$scope.connectors[parentIdx].subgroup[idx].value = ',';
} else {
const value = $scope.connectors[parentIdx].value;
$scope.connectors[parentIdx].value = value === ';' ? ',' : ';';
buildQuery($scope.groupedTagList);
}
buildQuery($scope.groupedTagList);
}
};