Fix import for latest redmine changes

This commit is contained in:
Alexander Meindl 2022-07-24 15:01:56 +02:00
parent aab4ed749a
commit db8f09d79a
2 changed files with 3 additions and 9 deletions

View File

@ -1,6 +1,8 @@
# frozen_string_literal: true # frozen_string_literal: true
class AdditionalsImport < Import class AdditionalsImport < Import
attr_accessor :project
class_attribute :import_class class_attribute :import_class
# Returns the objects that were imported # Returns the objects that were imported
@ -9,14 +11,6 @@ class AdditionalsImport < Import
import_class.where(id: object_ids).order(:id) import_class.where(id: object_ids).order(:id)
end end
def project=(project)
settings['project'] = project
end
def project
settings['project']
end
def mappable_custom_fields def mappable_custom_fields
object = import_class.new object = import_class.new
@custom_fields = object.custom_field_values.map(&:custom_field) @custom_fields = object.custom_field_values.map(&:custom_field)

View File

@ -22,4 +22,4 @@
.user.line .user.line
= l :field_mail = l :field_mail
' : ' :
= mail_to user.mail, nil, encode: 'javascript' = mail_to user.mail