create.rb 500 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class FormUpdater::Updater::Ticket::Create < FormUpdater::Updater
  3. include FormUpdater::Concerns::ChecksCoreWorkflow
  4. include FormUpdater::Concerns::HasSecurityOptions
  5. include FormUpdater::Concerns::ProvidesInitialValues
  6. core_workflow_screen 'create_middle'
  7. def object_type
  8. ::Ticket
  9. end
  10. def initial_values
  11. {
  12. 'priority_id' => ::Ticket::Priority.find_by(default_create: true)&.id
  13. }
  14. end
  15. end