Fix import for latest redmine changes
This commit is contained in:
parent
aab4ed749a
commit
db8f09d79a
@ -1,6 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdditionalsImport < Import
|
||||
attr_accessor :project
|
||||
|
||||
class_attribute :import_class
|
||||
|
||||
# Returns the objects that were imported
|
||||
@ -9,14 +11,6 @@ class AdditionalsImport < Import
|
||||
import_class.where(id: object_ids).order(:id)
|
||||
end
|
||||
|
||||
def project=(project)
|
||||
settings['project'] = project
|
||||
end
|
||||
|
||||
def project
|
||||
settings['project']
|
||||
end
|
||||
|
||||
def mappable_custom_fields
|
||||
object = import_class.new
|
||||
@custom_fields = object.custom_field_values.map(&:custom_field)
|
||||
|
@ -22,4 +22,4 @@
|
||||
.user.line
|
||||
= l :field_mail
|
||||
' :
|
||||
= mail_to user.mail, nil, encode: 'javascript'
|
||||
= mail_to user.mail
|
||||
|
Loading…
Reference in New Issue
Block a user