aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-05-29 15:01:40 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-05-29 16:01:15 +0200
commitff83bd8afede243c807dbf025bb9839bcbc2f88e (patch)
tree0269172e15fe861b8015ed31031c54873d4142e7 /sonar-core
parent2df15e648ef11b6e3ec40dae2a93ad250cb62170 (diff)
downloadsonarqube-ff83bd8afede243c807dbf025bb9839bcbc2f88e.tar.gz
sonarqube-ff83bd8afede243c807dbf025bb9839bcbc2f88e.zip
SONAR-6576 WS api/metrics/domains returns domains of enabled metrics only
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/metric/db/MetricMapper.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/metric/db/MetricMapper.xml b/sonar-core/src/main/resources/org/sonar/core/metric/db/MetricMapper.xml
index 4c38d99c12a..2e638309850 100644
--- a/sonar-core/src/main/resources/org/sonar/core/metric/db/MetricMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/metric/db/MetricMapper.xml
@@ -66,7 +66,7 @@
<select id="selectDomains" resultType="String">
select distinct domain
from metrics m
- where m.domain is not null
+ where m.domain is not null and m.enabled=${_true}
</select>
<update id="disable">