]> source.dussan.org Git - redmine.git/commitdiff
Same fix as r13582 for trackers and statuses (#18769).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2015 22:56:34 +0000 (22:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2015 22:56:34 +0000 (22:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13853 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issue_statuses_controller.rb
app/controllers/trackers_controller.rb
app/views/issue_statuses/index.html.erb
app/views/trackers/index.html.erb

index a6b72f329dee049cf81c879df336d01bcd19c361..3ac9f0d9dea4ecdac44ff8f4a2c63ba2186df76b 100644 (file)
@@ -56,7 +56,7 @@ class IssueStatusesController < ApplicationController
     @issue_status = IssueStatus.find(params[:id])
     if @issue_status.update_attributes(params[:issue_status])
       flash[:notice] = l(:notice_successful_update)
-      redirect_to issue_statuses_path
+      redirect_to issue_statuses_path(:page => params[:page])
     else
       render :action => 'edit'
     end
index ec0b9ce3f4a17bff1e516de08d065af8c43367ca..e333f1d260f311ca38edb8c20c106763e8e02812 100644 (file)
@@ -64,7 +64,7 @@ class TrackersController < ApplicationController
     @tracker = Tracker.find(params[:id])
     if @tracker.update_attributes(params[:tracker])
       flash[:notice] = l(:notice_successful_update)
-      redirect_to trackers_path
+      redirect_to trackers_path(:page => params[:page])
       return
     end
     edit
index d4a2ecbb2631248a00c7a9205faf664ce0f90367..81c34f703e120001bc2dabe2814b6917d10f5a8e 100644 (file)
@@ -23,7 +23,7 @@
   <td><%= h status.default_done_ratio %></td>
   <% end %>
   <td><%= checked_image status.is_closed? %></td>
-  <td class="reorder"><%= reorder_links('issue_status', {:action => 'update', :id => status}, :put) %></td>
+  <td class="reorder"><%= reorder_links('issue_status', {:action => 'update', :id => status, :page => params[:page]}, :put) %></td>
   <td class="buttons">
     <%= delete_link issue_status_path(status) %>
   </td>
index d1928e989dfdd48fbec74228ceaa6fc2f436c121..64f06fc5c728705c38514570a54cf1b2d9a78584 100644 (file)
@@ -24,7 +24,7 @@
     <% end %>
   </td>
   <td class="reorder">
-    <%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %>
+    <%= reorder_links('tracker', {:action => 'update', :id => tracker, :page => params[:page]}, :put) %>
   </td>
   <td class="buttons">
     <%= delete_link tracker_path(tracker) %>