@@ -133,7 +133,7 class IssuesController < ApplicationController | |||||
133 | call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) |
|
133 | call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) | |
134 | respond_to do |format| |
|
134 | respond_to do |format| | |
135 | format.html { |
|
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 | { :action => 'show', :id => @issue }) |
|
137 | { :action => 'show', :id => @issue }) | |
138 | } |
|
138 | } | |
139 | format.xml { render :action => 'show', :status => :created, :location => url_for(:controller => 'issues', :action => 'show', :id => @issue) } |
|
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 | :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', : |
|
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