Merged r13852 and r13853 (#18769).

git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13866 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-01-10 21:10:18 +00:00
parent b5731806fd
commit f2ee9ccb1b
6 changed files with 6 additions and 6 deletions

View 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

View 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

View 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

View 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>

View 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">

View 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) %>