Browse Source

Fixed issue #504 - History: 'Object already exists!'.

Thorsten Eckel 8 years ago
parent
commit
27457f5c39
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/import/otrs/history.rb

+ 2 - 0
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