From 71daf9134a060471c5fa8e079cb5573a153436f4 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 29 Jun 2019 05:28:49 +0000 Subject: [PATCH] View switches from gantt to list after editing an issue (#31552). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18322 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/common/_calendar.html.erb | 1 + app/views/gantts/show.html.erb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/views/common/_calendar.html.erb b/app/views/common/_calendar.html.erb index dce3c8b52..0236a9688 100644 --- a/app/views/common/_calendar.html.erb +++ b/app/views/common/_calendar.html.erb @@ -1,4 +1,5 @@ <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> +<%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %> <% 7.times do |i| %><% end %> diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 1f2ad6bd9..00dd2c230 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -166,6 +166,7 @@ <%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %> <%= content_tag(:div, :class => "gantt_subjects") do %> <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> + <%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %> <%= @gantt.subjects.html_safe %> <% end %> <% end %> @@ -343,6 +344,7 @@ <% end %> <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> + <%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %> <%= @gantt.lines.html_safe %> <% end %>
<%= day_name( (calendar.first_wday+i)%7 ) %>