From: Jean-Philippe Lang Date: Sun, 26 Sep 2010 07:51:10 +0000 (+0000) Subject: Fixes broken filter clearing links on gantt and calendar (#6473). X-Git-Tag: 1.1.0~337 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53b131ba2a68e6aa21aae388d571e8b77ffe7aa9;p=redmine.git Fixes broken filter clearing links on gantt and calendar (#6473). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4176 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index 530416661..a898f9895 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -26,7 +26,8 @@ }, :class => 'icon icon-checked' %> <%= link_to_remote l(:button_clear), - { :url => { :set_filter => (@query.new_record? ? 1 : nil) }, + { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) }, + :method => :put, :update => "content", }, :class => 'icon icon-reload' if @query.new_record? %>

diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 5a64054af..cb2da5adc 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -29,7 +29,8 @@ }, :class => 'icon icon-checked' %> <%= link_to_remote l(:button_clear), - { :url => { :set_filter => (@query.new_record? ? 1 : nil) }, + { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) }, + :method => :put, :update => "content", }, :class => 'icon icon-reload' if @query.new_record? %>