text_area.rb 571 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Import
  3. module OTRS
  4. class DynamicField
  5. class TextArea < Import::OTRS::DynamicField
  6. def init_callback(dynamic_field)
  7. @attribute_config.merge!(
  8. data_type: 'textarea',
  9. data_option: {
  10. default: dynamic_field['Config']['DefaultValue'],
  11. rows: dynamic_field['Config']['Rows'],
  12. null: true,
  13. maxlength: 3000,
  14. }
  15. )
  16. end
  17. end
  18. end
  19. end
  20. end