]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7160 Change of drilldown period fails
authorStas Vilchik <vilchiks@gmail.com>
Mon, 21 Dec 2015 16:06:23 +0000 (17:06 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 21 Dec 2015 16:06:23 +0000 (17:06 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb

index e8fb8f0d03c320446ca42cfdc6d4a0c447157e49..3e1a68f269f839e0433d5671d5a3d0b5f2656b58 100644 (file)
@@ -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? %>