Commit a2886c3f98c990c26f2cfffc2f15809ca91d1f36

Authored by Rafael Martins
1 parent 50a8612e

Fix for articles apparently not being copied from template

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/models/profile.rb
@@ -541,6 +541,7 @@ private :generate_url, :url_options @@ -541,6 +541,7 @@ private :generate_url, :url_options
541 other.top_level_articles.each do |a| 541 other.top_level_articles.each do |a|
542 copy_article_tree a 542 copy_article_tree a
543 end 543 end
  544 + self.articles.reload
544 end 545 end
545 546
546 def copy_article_tree(article, parent=nil) 547 def copy_article_tree(article, parent=nil)