Commit 4813e9c116c4b56898bfb2f447b5e2a547b31b3b

Authored by Leandro Santos
1 parent 8a2038f2
Exists in master

put the correct profile indetifier information

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
lib/email_article_plugin.rb
... ... @@ -13,12 +13,12 @@ class EmailArticlePlugin < Noosfero::Plugin
13 13 htmlclass = _("button with-text icon-menu-mail")
14 14 title = _("Email article to all community members")
15 15  
16   - proc {
  16 + proc do
17 17 if !profile.blank? and !user.blank? and user.is_admin?(profile) and @page.kind_of?(TextArticle)
18 18 link_to_remote(
19 19 label,
20 20 {
21   - :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page, :profile => @page.profile},
  21 + :url => { :profile => profile.identifier, :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page},
22 22 :method => :get,
23 23 :success => "display_notice('" + _("Messages are being sent") + "')",
24 24 :failure => "display_notice('" + _("Error sending emails") + "')",
... ... @@ -28,6 +28,6 @@ class EmailArticlePlugin < Noosfero::Plugin
28 28 :title => title
29 29 )
30 30 end
31   - }
  31 + end
32 32 end
33 33 end
... ...