aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-10-21 15:32:05 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-10-24 13:38:32 +0200
commitfa2be375fe709f6fcf037cb1dd8e2303a9a57366 (patch)
tree0279e3f124a7b92db3b4293a928a999f07560fa6 /sonar-db
parent615a2455126cc05b5dc92ecf8e285789b31dfe57 (diff)
downloadsonarqube-fa2be375fe709f6fcf037cb1dd8e2303a9a57366.tar.gz
sonarqube-fa2be375fe709f6fcf037cb1dd8e2303a9a57366.zip
SONAR-8287 Hidden metrics should be allowed in project search action
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/metric/MetricDto.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/metric/MetricDto.java b/sonar-db/src/main/java/org/sonar/db/metric/MetricDto.java
index 7eafcc266c8..73d963d08a0 100644
--- a/sonar-db/src/main/java/org/sonar/db/metric/MetricDto.java
+++ b/sonar-db/src/main/java/org/sonar/db/metric/MetricDto.java
@@ -24,6 +24,7 @@ import javax.annotation.Nullable;
import static org.sonar.api.measures.Metric.ValueType.DATA;
import static org.sonar.api.measures.Metric.ValueType.DISTRIB;
+import static org.sonar.api.measures.Metric.ValueType.STRING;
public class MetricDto {
@@ -212,7 +213,7 @@ public class MetricDto {
}
public boolean isDataType() {
- return DATA.name().equals(valueType) || DISTRIB.name().equals(valueType);
+ return DATA.name().equals(valueType) || DISTRIB.name().equals(valueType) || STRING.name().equals(valueType);
}
}