Follow up: WIP issue #368 - OTRS tickets are created without an assigned customer user.

This commit is contained in:
Thorsten Eckel 2016-11-16 12:07:51 +01:00
parent 24da432aec
commit 8d745cbef9

View file

@ -1599,10 +1599,9 @@ module Import::OTRS
user_id = 1
articles.each { |article|
next if article['sender'] != 'customer'
next if article['created_by_id'].to_i != 1
next if article['from'].empty?
user_id = article['created_by_id']
user_id = article['created_by_id'].to_i
break
}