##// END OF EJS Templates
Fixed "Create and continue" redirection broken by recent changes. #6333...
Jean-Baptiste Barth -
r3969:12e10f6956fc
parent child
Show More
@@ -134,7 +134,7 class IssuesController < ApplicationController
134 call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
134 call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
135 respond_to do |format|
135 respond_to do |format|
136 format.html {
136 format.html {
137 redirect_to(params[:continue] ? { :action => 'new', :issue => {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?} } :
137 redirect_to(params[:continue] ? { :action => 'new', :project_id => @project, :issue => {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?} } :
138 { :action => 'show', :id => @issue })
138 { :action => 'show', :id => @issue })
139 }
139 }
140 format.xml { render :action => 'show', :status => :created, :location => url_for(:controller => 'issues', :action => 'show', :id => @issue) }
140 format.xml { render :action => 'show', :status => :created, :location => url_for(:controller => 'issues', :action => 'show', :id => @issue) }
@@ -405,7 +405,8 class IssuesControllerTest < ActionController::TestCase
405 :subject => 'This is first issue',
405 :subject => 'This is first issue',
406 :priority_id => 5},
406 :priority_id => 5},
407 :continue => ''
407 :continue => ''
408 assert_redirected_to :controller => 'issues', :action => 'new', :issue => {:tracker_id => 3}
408 assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook',
409 :issue => {:tracker_id => 3}
409 end
410 end
410
411
411 def test_post_create_without_custom_fields_param
412 def test_post_create_without_custom_fields_param
General Comments 0
You need to be logged in to leave comments. Login now