From 626c11667920ecc27a59fe8bc9cf6887b82c2046 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 24 May 2017 15:58:22 +0200 Subject: [PATCH] Also take origin_by_id for article assets. --- app/models/ticket/article/assets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ticket/article/assets.rb b/app/models/ticket/article/assets.rb index eef72101c..82b266648 100644 --- a/app/models/ticket/article/assets.rb +++ b/app/models/ticket/article/assets.rb @@ -42,7 +42,7 @@ returns data[ app_model_article ][ id ] = attributes_with_association_ids end - %w(created_by_id updated_by_id).each { |local_user_id| + %w(created_by_id updated_by_id origin_by_id).each { |local_user_id| next if !self[ local_user_id ] next if data[ app_model_user ] && data[ app_model_user ][ self[ local_user_id ] ] user = User.lookup(id: self[ local_user_id ])