Fixed issue #504 - History: 'Object already exists!'.
This commit is contained in:
parent
2f2c4ef5ca
commit
27457f5c39
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
module Import
|
module Import
|
||||||
module OTRS
|
module OTRS
|
||||||
class History
|
class History
|
||||||
|
include Import::Helper
|
||||||
|
|
||||||
def initialize(history)
|
def initialize(history)
|
||||||
init_callback(history)
|
init_callback(history)
|
||||||
|
@ -17,6 +18,7 @@ module Import
|
||||||
|
|
||||||
def add
|
def add
|
||||||
::History.add(@history_attributes)
|
::History.add(@history_attributes)
|
||||||
|
reset_primary_key_sequence('histories')
|
||||||
end
|
end
|
||||||
|
|
||||||
# make sure that no other thread is importing just the same
|
# make sure that no other thread is importing just the same
|
||||||
|
|
Loading…
Reference in a new issue