Adds a 'Create and continue' button on new user form.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3204 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-12-20 10:51:33 +00:00
parent 1099d704b5
commit c5976333c2
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -82,7 +82,9 @@ class UsersController < ApplicationController
if @user.save
Mailer.deliver_account_information(@user, params[:password]) if params[:send_information]
flash[:notice] = l(:notice_successful_create)
redirect_to :controller => 'users', :action => 'edit', :id => @user
redirect_to(params[:continue] ? {:controller => 'users', :action => 'add'} :
{:controller => 'users', :action => 'edit', :id => @user})
return
end
end
@auth_sources = AuthSource.find(:all)