Adds a 'Create and continue' button on the new issue form, that will create the issue and display the form again (#2523).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2265 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-01-16 17:20:41 +00:00
parent d28d2d5ab8
commit ffa6c5fe3e
34 changed files with 44 additions and 1 deletions
+2 -1
View File
@@ -148,7 +148,8 @@ class IssuesController < ApplicationController
flash[:notice] = l(:notice_successful_create)
Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
redirect_to :controller => 'issues', :action => 'show', :id => @issue
redirect_to(params[:continue] ? { :action => 'new', :tracker_id => @issue.tracker } :
{ :action => 'show', :id => @issue })
return
end
end