aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-21 17:06:23 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-21 17:06:23 +0100
commit27b713be24d9316f8fe5f5ccd243fa4faa75737b (patch)
tree34a0c2a3adecc458abf4fc6d9ea46004d2d7d099 /server/sonar-web
parent93aac6dc9b6926e901db41e0509d1cab6a9ef98b (diff)
downloadsonarqube-27b713be24d9316f8fe5f5ccd243fa4faa75737b.tar.gz
sonarqube-27b713be24d9316f8fe5f5ccd243fa4faa75737b.zip
SONAR-7160 Change of drilldown period fails
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
index e8fb8f0d03c..3e1a68f269f 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
@@ -2,8 +2,12 @@
<% if params[:period] && @snapshot.project_snapshot.periods? %>
<div id="snapshot_title" class="spacer-bottom">
<h4>
- <form method="GET" action="<%= url_for :action => 'measures' -%>" style="display: inline">
- <input type="hidden" name="metric" value="<%= params[:metric] -%>"/>
+ <form method="GET" action="<%= ApplicationController.root_context -%>/drilldown/measures" style="display: inline">
+ <input type="hidden" name="id" value="<%= h @snapshot.project.key -%>"/>
+ <input type="hidden" name="metric" value="<%= h params[:metric] -%>"/>
+ <% if params[:highlight] %>
+ <input type="hidden" name="highlight" value="<%= h params[:highlight] -%>"/>
+ <% end -%>
<select id="select-comparison" name="period" onchange="submit()">
<% if @drilldown.display_value? %>