Commit 062c9cce1291346adf1d85ef1f959f951c400c4f
1 parent
0fc47b33
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
email_article: added profile param to send email link
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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") + "')", | ... | ... |