owner.rb 332 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class FormUpdater::Relation::Owner < FormUpdater::Relation
  3. private
  4. def display_name(item)
  5. return item.fullname if item.fullname.present?
  6. return item.phone if item.phone.present?
  7. item.login
  8. end
  9. def relation_type
  10. ::User
  11. end
  12. end