Commit c3b21dabb46e82f388eb476bd283032741b5d49b

Authored by Victor Costa
1 parent c4ac64ed

comment_paragraph: fix toolbar button

plugins/comment_paragraph/lib/comment_paragraph_plugin.rb
... ... @@ -47,7 +47,7 @@ class CommentParagraphPlugin < Noosfero::Plugin
47 47 def article_toolbar_actions(article)
48 48 return unless article.comment_paragraph_plugin_enabled?
49 49 proc do
50   - button :toggle_comment_paragraph, article.comment_paragraph_plugin_activated? ? _('Deactivate Comments') : _('Activate Comments'), :controller => 'comment_paragraph_plugin_myprofile', :action => 'toggle_activation', :id => article.id if article.allow_edit?(user)
  50 + button :toggle_comment_paragraph, article.comment_paragraph_plugin_activated? ? _('Deactivate Comments') : _('Activate Comments'), :controller => 'comment_paragraph_plugin_myprofile', :profile => article.profile.identifier, :action => 'toggle_activation', :id => article.id if article.allow_edit?(user)
51 51 end
52 52 end
53 53  
... ...