@@ -133,7 +133,7 class IssuesController < ApplicationController | |||
|
133 | 133 | call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) |
|
134 | 134 | respond_to do |format| |
|
135 | 135 | format.html { |
|
136 | redirect_to(params[:continue] ? { :action => 'new', :issue => {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?} } : | |
|
136 | 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?} } : | |
|
137 | 137 | { :action => 'show', :id => @issue }) |
|
138 | 138 | } |
|
139 | 139 | 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 | 405 | :subject => 'This is first issue', |
|
406 | 406 | :priority_id => 5}, |
|
407 | 407 | :continue => '' |
|
408 |
assert_redirected_to :controller => 'issues', :action => 'new', : |
|
|
408 | assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', | |
|
409 | :issue => {:tracker_id => 3} | |
|
409 | 410 | end |
|
410 | 411 | |
|
411 | 412 | def test_post_create_without_custom_fields_param |
General Comments 0
You need to be logged in to leave comments.
Login now