multiselect.rb 589 B

1234567891011121314151617181920
  1. module Import
  2. module OTRS
  3. class DynamicField
  4. class Multiselect < Import::OTRS::DynamicField
  5. def init_callback(dynamic_field)
  6. @attribute_config.merge!(
  7. data_type: 'select',
  8. data_option: {
  9. default: '',
  10. multiple: true,
  11. options: dynamic_field['Config']['PossibleValues'],
  12. null: dynamic_field['Config']['PossibleNone'] == '1',
  13. translate: dynamic_field['Config']['TranslatableValues'] == '1',
  14. }
  15. )
  16. end
  17. end
  18. end
  19. end
  20. end