diff --git a/app/views/timelog/report.html.erb b/app/views/timelog/report.html.erb index 176f128..7d022aa 100644 --- a/app/views/timelog/report.html.erb +++ b/app/views/timelog/report.html.erb @@ -25,7 +25,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' %>
+ <%= link_to l(:button_clear), {:params => request.query_parameters.merge(:criteria => nil)}, :class => 'icon icon-reload' %> <% end %> <% unless @report.criteria.empty? %>