From cd896bc6e13f023a3be84e681d936447af608c06 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 23 May 2019 15:34:01 +0200 Subject: [PATCH] Skip user ticket counter background jobs on import. --- app/models/observer/ticket/user_ticket_counter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/observer/ticket/user_ticket_counter.rb b/app/models/observer/ticket/user_ticket_counter.rb index a19c05f45..1137b610b 100644 --- a/app/models/observer/ticket/user_ticket_counter.rb +++ b/app/models/observer/ticket/user_ticket_counter.rb @@ -12,6 +12,8 @@ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer # return if we run import mode return true if Setting.get('import_mode') + return true if BulkImportInfo.enabled? + return true if record.destroyed? return true if !record.customer_id