2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2016-11-25 16:10:37 +00:00
|
|
|
module Import
|
|
|
|
module OTRS
|
|
|
|
class DynamicField
|
|
|
|
class Multiselect < Import::OTRS::DynamicField
|
|
|
|
def init_callback(dynamic_field)
|
|
|
|
@attribute_config.merge!(
|
|
|
|
data_type: 'select',
|
|
|
|
data_option: {
|
2017-08-23 14:41:01 +00:00
|
|
|
default: '',
|
|
|
|
multiple: true,
|
|
|
|
options: dynamic_field['Config']['PossibleValues'],
|
|
|
|
nulloption: dynamic_field['Config']['PossibleNone'] == '1',
|
|
|
|
null: true,
|
|
|
|
translate: dynamic_field['Config']['TranslatableValues'] == '1',
|
2016-11-25 16:10:37 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|