diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-10 15:47:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-10 15:47:52 +0000 |
commit | ea635ece05b8f2c61b953060826d2408617f146f (patch) | |
tree | d498f1414357ce15ad6e8eacda0555c62ba59359 /test/functional/issues_controller_test.rb | |
parent | 300e5e4652083cae3c5bce3d021f5a1745ae4e5c (diff) | |
download | redmine-ea635ece05b8f2c61b953060826d2408617f146f.tar.gz redmine-ea635ece05b8f2c61b953060826d2408617f146f.zip |
Copying an issue does not copy parent task id (#12893).
git-svn-id: http://svn.redmine.org/redmine/trunk@15058 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 8cbd99d64..395a5615e 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2775,6 +2775,14 @@ class IssuesControllerTest < ActionController::TestCase assert_select 'input[name=copy_attachments]', 0 end + def test_new_as_copy_should_preserve_parent_id + @request.session[:user_id] = 2 + issue = Issue.generate!(:parent_issue_id => 2) + get :new, :project_id => 1, :copy_from => issue.id + + assert_select 'input[name=?][value="2"]', 'issue[parent_issue_id]' + end + def test_new_as_copy_with_subtasks_should_show_copy_subtasks_checkbox @request.session[:user_id] = 2 issue = Issue.generate_with_descendants! |