@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
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
@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
<% 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>
<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">
<% 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) %>