summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-07 18:23:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-07 18:23:42 +0000
commite3875ffd5739a60e59f54ff431d2c0bf17f8a55e (patch)
tree1d0fcbd0ad8fb4b155fb0df780403a3765f5f4c9 /app/controllers
parentb935539f287a18924d510de8649f38fffdb85f50 (diff)
downloadredmine-e3875ffd5739a60e59f54ff431d2c0bf17f8a55e.tar.gz
redmine-e3875ffd5739a60e59f54ff431d2c0bf17f8a55e.zip
Make Tracker map-able for CSV import (#22951).
git-svn-id: http://svn.redmine.org/redmine/trunk@15490 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/imports_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rb
index 79a5ced4b..75d4da933 100644
--- a/app/controllers/imports_controller.rb
+++ b/app/controllers/imports_controller.rb
@@ -57,11 +57,7 @@ class ImportsController < ApplicationController
end
def mapping
- issue = Issue.new
- issue.project = @import.project
- issue.tracker = @import.tracker
- @attributes = issue.safe_attribute_names
- @custom_fields = issue.editable_custom_field_values.map(&:custom_field)
+ @custom_fields = @import.mappable_custom_fields
if request.post?
respond_to do |format|