Adds 'Create and continue' button on the new group form.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6304 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-07-21 15:55:50 +00:00
parent f595197ecf
commit 82f5831545
3 changed files with 15 additions and 3 deletions
+4 -2
View File
@@ -67,8 +67,10 @@ class GroupsController < ApplicationController
respond_to do |format|
if @group.save
flash[:notice] = l(:notice_successful_create)
format.html { redirect_to(groups_path) }
format.html {
flash[:notice] = l(:notice_successful_create)
redirect_to(params[:continue] ? new_group_path : groups_path)
}
format.xml { render :xml => @group, :status => :created, :location => @group }
else
format.html { render :action => "new" }