Keep status filter on the projects list when un/archiving a project (#3530).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2806 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-07-04 13:14:28 +00:00
parent ef8ef596de
commit 937823a0d8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -172,12 +172,12 @@ class ProjectsController < ApplicationController
def archive
@project.archive if request.post? && @project.active?
redirect_to :controller => 'admin', :action => 'projects'
redirect_to(url_for(:controller => 'admin', :action => 'projects', :status => params[:status]))
end
def unarchive
@project.unarchive if request.post? && !@project.active?
redirect_to :controller => 'admin', :action => 'projects'
redirect_to(url_for(:controller => 'admin', :action => 'projects', :status => params[:status]))
end
# Delete @project