From b2abe48592b3b2425d63bfbe2dc38e051bec272a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Apr 2008 12:14:15 +0000 Subject: [PATCH] Use GET instead of POST on roadmap (#718), gantt and calendar forms. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1388 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/calendar.rhtml | 2 +- app/views/projects/gantt.rhtml | 4 ++-- app/views/projects/roadmap.rhtml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/projects/calendar.rhtml b/app/views/projects/calendar.rhtml index 743721cb3..048d8a5df 100644 --- a/app/views/projects/calendar.rhtml +++ b/app/views/projects/calendar.rhtml @@ -23,7 +23,7 @@ <% content_for :sidebar do %>

<%= l(:label_calendar) %>

- <% form_tag() do %> + <% form_tag({}, :method => :get) do %>

<%= select_month(@month, :prefix => "month", :discard_type => true) %> <%= select_year(@year, :prefix => "year", :discard_type => true) %>

diff --git a/app/views/projects/gantt.rhtml b/app/views/projects/gantt.rhtml index d941d2777..f398bace7 100644 --- a/app/views/projects/gantt.rhtml +++ b/app/views/projects/gantt.rhtml @@ -235,7 +235,7 @@ if Date.today >= @date_from and Date.today <= @date_to %> <% content_for :sidebar do %>

<%= l(:label_gantt) %>

- <% form_tag(params.merge(:tracker_ids => nil, :with_subprojects => nil)) do %> + <% form_tag(params.merge(:tracker_ids => nil, :with_subprojects => nil), :method => :get) do %> <% @trackers.each do |tracker| %>
<% end %> @@ -243,7 +243,7 @@ if Date.today >= @date_from and Date.today <= @date_to %>
<%= hidden_field_tag 'with_subprojects', 0 %> <% end %> -

<%= submit_tag l(:button_apply), :class => 'button-small' %>

+

<%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %>

<% end %> <% end %> diff --git a/app/views/projects/roadmap.rhtml b/app/views/projects/roadmap.rhtml index d9329d109..ba0bb3ebd 100644 --- a/app/views/projects/roadmap.rhtml +++ b/app/views/projects/roadmap.rhtml @@ -30,7 +30,7 @@ <% end %> <% content_for :sidebar do %> -<% form_tag do %> +<% form_tag({}, :method => :get) do %>

<%= l(:label_roadmap) %>

<% @trackers.each do |tracker| %>