Commit d4aa93ac1a94191c53e42684da424d4dd7479bd5
1 parent
c305f512
Exists in
master
and in
29 other branches
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 | 48 | end |
49 | 49 | |
50 | 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 | 52 | end |
53 | 53 | |
54 | 54 | def title | ... | ... |