Only do creation of article within ActiveRecord::Base.transaction block.
This commit is contained in:
parent
65dbd8799b
commit
d5252f599a
1 changed files with 109 additions and 109 deletions
|
@ -650,6 +650,7 @@ module Import::OTRS2
|
||||||
article.save
|
article.save
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
#puts "HS: #{record['History'].inspect}"
|
#puts "HS: #{record['History'].inspect}"
|
||||||
record['History'].each { |history|
|
record['History'].each { |history|
|
||||||
|
@ -759,7 +760,6 @@ module Import::OTRS2
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue