calls_stats_ticket_reopen_log.rb 503 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. # Adds new and updated tickets to the reopen log processing.
  3. module Ticket::CallsStatsTicketReopenLog
  4. extend ActiveSupport::Concern
  5. included do
  6. after_commit :ticket_call_stats_ticket_reopen_log
  7. end
  8. private
  9. def ticket_call_stats_ticket_reopen_log
  10. # return if we run import mode
  11. return if Setting.get('import_mode')
  12. Stats::TicketReopen.log('Ticket', id, previous_changes, updated_by_id)
  13. end
  14. end