text.rb 538 B

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