trabajo-afectivo/lib/import/otrs/dynamic_field/text_area.rb

21 lines
571 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
module Import
module OTRS
class DynamicField
class TextArea < Import::OTRS::DynamicField
def init_callback(dynamic_field)
@attribute_config.merge!(
data_type: 'textarea',
data_option: {
default: dynamic_field['Config']['DefaultValue'],
rows: dynamic_field['Config']['Rows'],
null: true,
maxlength: 3000,
}
)
end
end
end
end
end