20180220000002_setting_user_organization_selector_with_email.rb 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingUserOrganizationSelectorWithEmail < ActiveRecord::Migration[5.1]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'User Organization Selector - email',
  8. name: 'ui_user_organization_selector_with_email',
  9. area: 'UI::UserOrganizatiomSelector',
  10. description: 'Display of the e-mail in the result of the user/organization widget.',
  11. options: {
  12. form: [
  13. {
  14. display: '',
  15. null: true,
  16. name: 'ui_user_organization_selector_with_email',
  17. tag: 'boolean',
  18. translate: true,
  19. options: {
  20. true => 'yes',
  21. false => 'no',
  22. },
  23. },
  24. ],
  25. },
  26. state: false,
  27. preferences: {
  28. prio: 100,
  29. permission: ['admin.ui'],
  30. },
  31. frontend: true
  32. )
  33. end
  34. end