From 27457f5c3900784756eabcc9b591cac358367a4e Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 6 Dec 2016 16:26:57 +0100 Subject: [PATCH] Fixed issue #504 - History: 'Object already exists!'. --- lib/import/otrs/history.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/import/otrs/history.rb b/lib/import/otrs/history.rb index d1ef84cef..19e2b24e1 100644 --- a/lib/import/otrs/history.rb +++ b/lib/import/otrs/history.rb @@ -2,6 +2,7 @@ module Import module OTRS class History + include Import::Helper def initialize(history) init_callback(history) @@ -17,6 +18,7 @@ module Import def add ::History.add(@history_attributes) + reset_primary_key_sequence('histories') end # make sure that no other thread is importing just the same