Commit 8a2038f2496d94e6c1d15e3be991f7347ab94bc1
1 parent
67c425f7
Exists in
master
email_article: added profile param to send email link
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/email_article_plugin.rb
@@ -18,7 +18,7 @@ class EmailArticlePlugin < Noosfero::Plugin | @@ -18,7 +18,7 @@ class EmailArticlePlugin < Noosfero::Plugin | ||
18 | link_to_remote( | 18 | link_to_remote( |
19 | label, | 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 | :method => :get, | 22 | :method => :get, |
23 | :success => "display_notice('" + _("Messages are being sent") + "')", | 23 | :success => "display_notice('" + _("Messages are being sent") + "')", |
24 | :failure => "display_notice('" + _("Error sending emails") + "')", | 24 | :failure => "display_notice('" + _("Error sending emails") + "')", |