Commit d4aa93ac1a94191c53e42684da424d4dd7479bd5

Authored by Daniela Feitosa
1 parent c305f512

Fixed bug when approving articles

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/approve_article.rb
@@ -48,7 +48,7 @@ class ApproveArticle < Task @@ -48,7 +48,7 @@ class ApproveArticle < Task
48 end 48 end
49 49
50 def perform 50 def perform
51 - article.copy!(:name => name, :abstract => abstract, :body => body, :profile => target, :reference_article => article, :parent => article_parent, :highlighted => highlighted, :source => article.source, :last_changed_by_id => article.author) 51 + article.copy!(:name => name, :abstract => abstract, :body => body, :profile => target, :reference_article => article, :parent => article_parent, :highlighted => highlighted, :source => article.source, :last_changed_by_id => article.author.id)
52 end 52 end
53 53
54 def title 54 def title