]> source.dussan.org Git - redmine.git/commitdiff
Merged r13852 and r13853 (#18769).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 21:10:18 +0000 (21:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 21:10:18 +0000 (21:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13866 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index d305dedd7b3f9f25dc376c46b682312dfd29f9a3..375e7e13e90e0417a7451b1e74508c39e5ab8fe0 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 8a976779ee234f78bc415fc013b212d5527f732f..61de2076dc71fbf5a54ea4a4645becb736b7f39f 100644 (file)
@@ -71,7 +71,7 @@ class RolesController < ApplicationController
   def update
     if request.put? and @role.update_attributes(params[:role])
       flash[:notice] = l(:notice_successful_update)
-      redirect_to roles_path
+      redirect_to roles_path(:page => params[:page])
     else
       render :action => 'edit'
     end
index 02274d0d3c7410f5c06cec944e076a6233790851..d5b5e71a9c734f352f2d38dc64695ac365070dfb 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 659dd18fa5c2ead3c9c409d980d25f2466ac1043..edec0bf75e19eb254ae5e78036c2de5358e0a109 100644 (file)
@@ -25,7 +25,7 @@
   <% end %>
   <td><%= checked_image status.is_default? %></td>
   <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 9eaab23b691b597e34ec4759d41e13b018dd1ef7..19a6c42c4dfcde673c981d814c9ceb0ed04a31fb 100644 (file)
@@ -17,7 +17,7 @@
   <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
   <td class="reorder">
   <% unless role.builtin? %>
-    <%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
+    <%= reorder_links('role', {:action => 'update', :id => role, :page => params[:page]}, :put) %>
   <% end %>
   </td>
   <td class="buttons">
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) %>