Also take origin_by_id for article assets.

This commit is contained in:
Martin Edenhofer 2017-05-24 15:58:22 +02:00
parent 586d47a41f
commit 626c116679

View file

@ -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 ])