Commit 7a65a00dc49d7626e9ab4fe883acd613f6f21902
1 parent
66712e81
Exists in
master
and in
27 other branches
display_content: ignore removed articles
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/display_content/lib/display_content_block.rb
@@ -87,7 +87,7 @@ class DisplayContentBlock < Block | @@ -87,7 +87,7 @@ class DisplayContentBlock < Block | ||
87 | def expand_nodes | 87 | def expand_nodes |
88 | return self.nodes if self.holder.nil? | 88 | return self.nodes if self.holder.nil? |
89 | 89 | ||
90 | - articles = self.holder.articles.find(nodes) | 90 | + articles = self.holder.articles.where(:id => nodes) |
91 | children = articles.map { |article| article.children }.compact.flatten | 91 | children = articles.map { |article| article.children }.compact.flatten |
92 | 92 | ||
93 | if display_folder_children | 93 | if display_folder_children |