Patch by Jérôme BATAILLE.
git-svn-id: http://svn.redmine.org/redmine/trunk@13852
e93f8b46-1217-0410-a6f0-
8f06a7374b81
def update
if @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
<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">