Browse Source

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

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

+ 1 - 2
lib/import/otrs.rb

@@ -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
     }