Commit 50facea9fd0579b5d3ae7cafcaca7f3640d38839

Authored by Leandro Nunes dos Santos
1 parent b8264c55

pass just the profile identifier not all the profile

plugins/comment_group_macro/lib/comment_group_macro_plugin.rb
@@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin @@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin
24 article = source 24 article = source
25 count = article.group_comments.without_spam.in_group(group_id).count 25 count = article.group_comments.without_spam.in_group(group_id).count
26 26
27 - lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile }} 27 + lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile.identifier }}
28 end 28 end
29 29
30 def macro_methods 30 def macro_methods