]> source.dussan.org Git - redmine.git/commitdiff
View switches from gantt to list after editing an issue (#31552).
authorGo MAEDA <maeda@farend.jp>
Sat, 29 Jun 2019 05:28:49 +0000 (05:28 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 29 Jun 2019 05:28:49 +0000 (05:28 +0000)
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
app/views/gantts/show.html.erb

index dce3c8b52b67c2be839e631caabdbd9626004cc7..0236a968802d61f93fb802fc458639380adbfaf0 100644 (file)
@@ -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 %>
 <table class="cal">
 <thead>
 <tr><th scope="col" title="<%= l(:label_week) %>" class="week-number"></th><% 7.times do |i| %><th scope="col"><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
index 1f2ad6bd9194be4cdd56ee307e0929d815cb4f6c..00dd2c23010018c194b5d0fd5701880cca75b67a 100644 (file)
     <%= 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 %>
 <% 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 %>