CSV import does not keep the project it was clicked from (#21766).

Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@19381 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2019-12-20 08:07:57 +00:00
parent 9c6a2c48e0
commit 13da124b16
7 changed files with 43 additions and 5 deletions

View File

@@ -44,9 +44,10 @@ class ImportsControllerTest < Redmine::ControllerTest
end
def test_new_should_display_the_upload_form
get :new, :params => { :type => 'IssueImport' }
get :new, :params => { :type => 'IssueImport', :project_id => 'subproject1' }
assert_response :success
assert_select 'input[name=?]', 'file'
assert_select 'input[name=?][type=?][value=?]', 'project_id', 'hidden', 'subproject1'
end
def test_create_should_save_the_file