]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2184 Can not select a period on custom dashboards
authorsimonbrandhof <simon.brandhof@gmail.com>
Thu, 10 Feb 2011 17:34:08 +0000 (18:34 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Thu, 10 Feb 2011 17:34:08 +0000 (18:34 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_header.html.erb

index 8174a2a8e6d2c753187173fbade1c3ea85f04951..b03580a90fd474fc6cbaf1104c280ef97c05a1aa 100644 (file)
@@ -19,7 +19,8 @@
   <%= link_to_favourite(@project) -%> Version <%= @snapshot.version -%> - <%= l @snapshot.created_at %>
   <% if @snapshot.project_snapshot.periods? %>
     -
-    <form method="GET" action="<%= url_for :only_path=>true, :overwrite_params => {:period => nil} -%>" style="display: inline">
+    <form method="GET" action="<%= url_for :controller => 'dashboard', :action => 'index', :id => @resource.id -%>" style="display: inline">
+    <input type="hidden" name="did" value="<%= @dashboard.id -%>" />
     <select id="select-comparison" name="period" onchange="submit()" class="small">
       <option value="">Time changes...</option>
       <%= period_select_options(@snapshot, 1) -%>