##// END OF EJS Templates
Redirect to the current page when reordering roles (#18769)....
Jean-Philippe Lang -
r13470:b1e105abe2a2
parent child
Show More
@@ -71,7 +71,7 class RolesController < ApplicationController
71 def update
71 def update
72 if @role.update_attributes(params[:role])
72 if @role.update_attributes(params[:role])
73 flash[:notice] = l(:notice_successful_update)
73 flash[:notice] = l(:notice_successful_update)
74 redirect_to roles_path
74 redirect_to roles_path(:page => params[:page])
75 else
75 else
76 render :action => 'edit'
76 render :action => 'edit'
77 end
77 end
@@ -17,7 +17,7
17 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
17 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
18 <td class="reorder">
18 <td class="reorder">
19 <% unless role.builtin? %>
19 <% unless role.builtin? %>
20 <%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
20 <%= reorder_links('role', {:action => 'update', :id => role, :page => params[:page]}, :put) %>
21 <% end %>
21 <% end %>
22 </td>
22 </td>
23 <td class="buttons">
23 <td class="buttons">
General Comments 0
You need to be logged in to leave comments. Login now