aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-24 14:04:07 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-24 14:04:07 +0100
commit472ec39ded1cea93fe9538afb72cebd72c239588 (patch)
tree27cfb288ff8249fffca912ab3b729478c0621dcf /server/sonar-server
parent290f7c401b1c349a11c50c17f5c867009077f543 (diff)
downloadsonarqube-472ec39ded1cea93fe9538afb72cebd72c239588.tar.gz
sonarqube-472ec39ded1cea93fe9538afb72cebd72c239588.zip
Fix tags dropdown in issue bulk change
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java b/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java
index 909cb4ea071..a209ec54d50 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java
@@ -623,7 +623,7 @@ public class IssueIndex extends BaseIndex {
result.addAll(EsUtils.termsKeys(issuesResult));
result.addAll(EsUtils.termsKeys(rulesResult));
List<String> resultAsList = Lists.newArrayList(result);
- return resultAsList.size() > maxNumberOfTags ? resultAsList.subList(0, maxNumberOfTags) : resultAsList;
+ return resultAsList.size() > maxNumberOfTags && maxNumberOfTags > 0 ? resultAsList.subList(0, maxNumberOfTags) : resultAsList;
}
public Map<String, Long> countTags(IssueQuery query, int maxNumberOfTags) {