Commit 01efcccd9baf5e277cafa6b4d360c72750164742
Exists in
master
and in
27 other branches
Merge branch 'rails3' of gitlab.com:participa/noosfero into rails3
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/display_content/lib/display_content_block.rb
... | ... | @@ -120,7 +120,7 @@ class DisplayContentBlock < Block |
120 | 120 | nodes_conditions = nodes.blank? ? '' : " AND articles.id IN(:nodes) " |
121 | 121 | nodes_conditions += ' OR articles.parent_id IN(:nodes) ' if !nodes.blank? && display_folder_children |
122 | 122 | |
123 | - docs = owner.articles.find(:all, :conditions => ["articles.type IN(:types) #{nodes.blank? ? '' : nodes_conditions}", {:nodes => self.nodes, :types => self.types}]) | |
123 | + docs = owner.articles.find(:all, :conditions => ["articles.type IN(:types) #{nodes.blank? ? '' : nodes_conditions}", {:nodes => self.nodes, :types => self.types}], :include => :profile) | |
124 | 124 | proc do |
125 | 125 | block.block_title(block.title) + |
126 | 126 | content_tag('ul', docs.map {|item| | ... | ... |