]> source.dussan.org Git - redmine.git/commitdiff
"Clear" button in Spent Time Report tab also clears global filters (#13622).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Dec 2016 09:35:05 +0000 (09:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Dec 2016 09:35:05 +0000 (09:35 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16057 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/timelog/report.html.erb

index c377de63c4a35faac3a4e455f4c8005a025f6e72..7641c0ea9d2917a5372b51e833d6e421d22df50d 100644 (file)
@@ -23,7 +23,7 @@
                                                           :style => 'width: 200px',
                                                           :disabled => (@report.criteria.length >= 3),
                                                           :id => "criterias") %>
-     <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue, :period_type => params[:period_type], :period => params[:period], :from => @from, :to => @to, :columns => @report.columns}, :class => 'icon icon-reload' %></p>
+     <%= link_to l(:button_clear), {:params => request.query_parameters.merge(:criteria => nil)}, :class => 'icon icon-reload' %></p>
 <% end %>
 
 <% unless @report.criteria.empty? %>