Commit 062c9cce1291346adf1d85ef1f959f951c400c4f

Authored by Victor Costa
1 parent 0fc47b33

email_article: added profile param to send email link

plugins/email_article/lib/email_article_plugin.rb
... ... @@ -18,7 +18,7 @@ class EmailArticlePlugin < Noosfero::Plugin
18 18 link_to_remote(
19 19 label,
20 20 {
21   - :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page},
  21 + :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page, :profile => @page.profile},
22 22 :method => :get,
23 23 :success => "display_notice('" + _("Messages are being sent") + "')",
24 24 :failure => "display_notice('" + _("Error sending emails") + "')",
... ...