text_area.rb 457 B

123456789101112131415161718
  1. module Import
  2. module OTRS
  3. class DynamicField
  4. class TextArea < Import::OTRS::DynamicField
  5. def init_callback(dynamic_field)
  6. @attribute_config.merge!(
  7. data_type: 'textarea',
  8. data_option: {
  9. default: dynamic_field['Config']['DefaultValue'],
  10. rows: dynamic_field['Config']['Rows'],
  11. null: true,
  12. }
  13. )
  14. end
  15. end
  16. end
  17. end
  18. end