Each article should get added in an own transaction.
This commit is contained in:
parent
2d67ac6b5e
commit
899d56434a
1 changed files with 3 additions and 3 deletions
|
@ -589,8 +589,8 @@ module Import::OTRS
|
||||||
_article_based_customers(article)
|
_article_based_customers(article)
|
||||||
}
|
}
|
||||||
|
|
||||||
ActiveRecord::Base.transaction do
|
record['Articles'].each do |article|
|
||||||
record['Articles'].each { |article|
|
ActiveRecord::Base.transaction do
|
||||||
|
|
||||||
# get article values
|
# get article values
|
||||||
article_new = {
|
article_new = {
|
||||||
|
@ -681,7 +681,7 @@ module Import::OTRS
|
||||||
created_by_id: 1,
|
created_by_id: 1,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#puts "HS: #{record['History'].inspect}"
|
#puts "HS: #{record['History'].inspect}"
|
||||||
|
|
Loading…
Reference in a new issue