Commit f710300ac97c79d60a1ca67cf9f348b90a509443
1 parent
3dda03d2
Exists in
master
and in
22 other branches
Copy parent and highlighted attributes to link article
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/approve_article.rb
| ... | ... | @@ -50,7 +50,7 @@ class ApproveArticle < Task |
| 50 | 50 | |
| 51 | 51 | def perform |
| 52 | 52 | if create_link |
| 53 | - LinkArticle.create!(:reference_article => article, :profile => target) | |
| 53 | + LinkArticle.create!(:reference_article => article, :profile => target, :parent => article_parent, :highlighted => highlighted) | |
| 54 | 54 | else |
| 55 | 55 | 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.last_changed_by_id, :created_by_id => article.created_by_id) |
| 56 | 56 | end | ... | ... |